ESTSettingPowerMotionOnlyBroadcastingEnable
@interface ESTSettingPowerMotionOnlyBroadcastingEnable
: ESTSettingReadWrite <NSCopying>
ESTSettingPowerMotionOnlyBroadcastingEnable represents DeviceInfo MotionOnlyBroadcastingEnable value.
-
Designated initializer. Validates provided value internally with +validationErrorForValue:.
See
+[ESTSettingPowerMotionOnlyBroadcastingEnable validationErrorForValue:]
Declaration
Objective-C
- (nonnull instancetype)initWithValue:(BOOL)enabled;
Swift
init(value enabled: Bool)
Parameters
enabled
DeviceInfo MotionOnlyBroadcastingEnable value.
Return Value
Initialized object. Nil if validation fails.
-
Returns current value of DeviceInfo MotionOnlyBroadcastingEnable setting.
Declaration
Objective-C
- (BOOL)getValue;
Swift
func getValue() -> Bool
Return Value
DeviceInfo MotionOnlyBroadcastingEnable value.
-
Method allows to read value of initialized DeviceInfo MotionOnlyBroadcastingEnable setting object.
Declaration
Objective-C
- (void)readValueWithCompletion: (nonnull ESTSettingPowerMotionOnlyBroadcastingEnableCompletionBlock) completion;
Swift
func readValue(completion: @escaping ESTSettingPowerMotionOnlyBroadcastingEnableCompletionBlock)
Parameters
completion
Block to be invoked when operation is complete.
-
Method allows to create write operation from already initialized DeviceInfo MotionOnlyBroadcastingEnable setting object. Value provided during initialization will be used as a desired value.
Declaration
Objective-C
- (void)writeValue:(BOOL)enabled completion: (nonnull ESTSettingPowerMotionOnlyBroadcastingEnableCompletionBlock) completion;
Swift
func writeValue(_ enabled: Bool, completion: @escaping ESTSettingPowerMotionOnlyBroadcastingEnableCompletionBlock)
Parameters
enabled
MotionOnlyBroadcastingEnable value to be written to the device.
completion
Block to be invoked when operation is complete.
-
Method checks if provided value is allowed. Returns nil if validation passes.
Declaration
Objective-C
+ (NSError *_Nullable)validationErrorForValue:(BOOL)enabled;
Swift
class func validationError(forValue enabled: Bool) -> Error?
Parameters
enabled
MotionOnlyBroadcastingEnable value.
Return Value
Error object describing why validation failed. Nil if validation passes.