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

    enable

    Power 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() -> Bool

    Return 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

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

  • 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

    enable

    ScheduledAdvertisingEnable value to be written to the device.

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

  • 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

    enable

    ScheduledAdvertisingEnable value.

    Return Value

    Error object describing why validation failed. Nil if validation passes.