SetLowPowerMode
public struct SetLowPowerMode : Shortcut
Sets the device’s Low Power Mode to on or off.
-
A target state of Low Power Mode.
See moreDeclaration
Swift
public enum Operation
-
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get }
-
Initializes the shortcut.
Declaration
Swift
public init(operation: VariableValue<Operation>)
Parameters
operation
The target state of Low Power Mode, expressed as a variable value.
-
Initializes the shortcut.
Declaration
Swift
public init(operation: Operation)
Parameters
operation
The target state of Low Power Mode: on, off, or toggle.
-
Initializes the shortcut.
Declaration
Swift
public init(_ onValue: Bool = true)
Parameters
onValue
The target state of Low Power Mode, on or off.