Set Flashlight / SetFlashlight (internally is.workflow.actions.flashlight)



Turns on or off the flashlight near the device’s camera.


SetFlashlight flashlight=("Off" | "On" | "Toggle") brightness=number


flashlight: Enumeration (Docs)

Default Value: "On" Allows Variables: true

Accepts a string or variable containing one of the options:

  • Off
  • On
  • Toggle

brightness: Slider Number (Docs)

Default Value: 1 Allows Variables: true

Only enabled if: argument WFFlashlightSetting == On or Toggle

Only enabled if: This action is always disabled inside Shortcutslang.

	Accepts a number 
	or variable
	with a number.

source json (for developers)

	"ACECommandClass": "SASettingSetFlashlight",
	"ActionClass": "WFToggleFlashlightAction",
	"ActionKeywords": [
	"Category": "Scripting",
	"Description": {
		"DescriptionSummary": "Turns on or off the flashlight near the device's camera."
	"IconName": "Flashlight.png",
	"InputPassthrough": true,
	"Name": "Set Flashlight",
	"Parameters": [
			"Class": "WFEnumerationParameter",
			"DefaultValue": "On",
			"Items": [
			"Key": "WFFlashlightSetting",
			"Label": "Flashlight"
			"Class": "WFSliderParameter",
			"DefaultValue": 1,
			"Hidden": true,
			"Key": "WFFlashlightLevel",
			"Label": "Brightness",
			"RequiredResources": [
					"WFParameterKey": "WFFlashlightSetting",
					"WFParameterValues": [
					"WFResourceClass": "WFParameterRelationResource"
	"Subcategory": "Device"