ESTSettingPowerScheduledAdvertisingEnable
@interface ESTSettingPowerScheduledAdvertisingEnable
: ESTSettingReadWrite <NSCopying>
ESTSettingPowerScheduledAdvertisingEnable represents Power ScheduledAdvertisingEnable value.
-
Designated initializer. Validates provided value internally with +validationErrorForValue:.
See
+[ESTSettingPowerScheduledAdvertisingEnable validationErrorForValue:]
Declaration
Objective-C
- (nonnull instancetype)initWithValue:(BOOL)enable;Swift
init(value enable: Bool)Parameters
enablePower ScheduledAdvertisingEnable value.
Return Value
Initialized object. Nil if validation fails.
-
Returns current value of Power ScheduledAdvertisingEnable setting.
Declaration
Objective-C
- (BOOL)getValue;Swift
func getValue() -> BoolReturn Value
Power ScheduledAdvertisingEnable value.
-
Method allows to read value of initialized Power ScheduledAdvertisingEnable setting object.
Declaration
Objective-C
- (void)readValueWithCompletion: (nonnull ESTSettingPowerScheduledAdvertisingEnableCompletionBlock) completion;Swift
func readValue(completion: @escaping ESTSettingPowerScheduledAdvertisingEnableCompletionBlock)Parameters
completionBlock to be invoked when operation is complete.
-
Method allows to create write operation from already initialized Power ScheduledAdvertisingEnable setting object. Value provided during initialization will be used as a desired value.
Declaration
Objective-C
- (void)writeValue:(BOOL)enable completion: (nonnull ESTSettingPowerScheduledAdvertisingEnableCompletionBlock) completion;Swift
func writeValue(_ enable: Bool, completion: @escaping ESTSettingPowerScheduledAdvertisingEnableCompletionBlock)Parameters
enableScheduledAdvertisingEnable value to be written to the device.
completionBlock 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)enable;Swift
class func validationError(forValue enable: Bool) -> Error?Parameters
enableScheduledAdvertisingEnable value.
Return Value
Error object describing why validation failed. Nil if validation passes.
View on GitHub
ESTSettingPowerScheduledAdvertisingEnable Class Reference