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
operationThe target state of Low Power Mode, expressed as a variable value.
-
Initializes the shortcut.
Declaration
Swift
public init(operation: Operation)Parameters
operationThe target state of Low Power Mode: on, off, or toggle.
-
Initializes the shortcut.
Declaration
Swift
public init(_ onValue: Bool = true)Parameters
onValueThe target state of Low Power Mode, on or off.
View on GitHub
SetLowPowerMode Structure Reference