ESTSettingIBeaconEnable

@interface ESTSettingIBeaconEnable : ESTSettingReadWrite <NSCopying>

ESTSettingIBeaconEnable represents iBeacon Enable value.

  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(BOOL)enabled;

    Swift

    init(value enabled: Bool)

    Parameters

    enabled

    iBeacon Enable value.

    Return Value

    Initialized object.

  • Returns current value of iBeacon Enable setting.

    Declaration

    Objective-C

    - (BOOL)getValue;

    Swift

    func getValue() -> Bool

    Return Value

    iBeacon IBeaconEnable value.

  • Method allows to read value of initialized iBeacon Enable setting object.

    Declaration

    Objective-C

    - (void)readValueWithCompletion:
        (nonnull ESTSettingIBeaconEnableCompletionBlock)completion;

    Swift

    func readValue(completion: @escaping ESTSettingIBeaconEnableCompletionBlock)

    Parameters

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

  • Method allows to create write operation from already initialized iBeacon Enable setting object. Value provided during initialization will be used as a desired value.

    Declaration

    Objective-C

    - (void)writeValue:(BOOL)enabled
            completion:(nonnull ESTSettingIBeaconEnableCompletionBlock)completion;

    Swift

    func writeValue(_ enabled: Bool, completion: @escaping ESTSettingIBeaconEnableCompletionBlock)

    Parameters

    enabled

    Enable value to be written to the device.

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.