ESTSettingIBeaconMinor

@interface ESTSettingIBeaconMinor : ESTSettingReadWrite <NSCopying>

ESTSettingIBeaconMinor represents iBeacon Minor value.

  • Designated initializer.

    Declaration

    Objective-C

    - (instancetype _Nullable)initWithValue:(unsigned short)minor;

    Swift

    init?(value minor: UInt16)

    Parameters

    minor

    iBeacon Minor value.

    Return Value

    Initialized object.

  • Returns current value of iBeacon Minor setting.

    Declaration

    Objective-C

    - (unsigned short)getValue;

    Swift

    func getValue() -> UInt16

    Return Value

    iBeacon Minor value.

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

    Declaration

    Objective-C

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

    Swift

    func readValue(completion: @escaping ESTSettingIBeaconMinorCompletionBlock)

    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 Minor setting object. Value provided during initialization will be used as a desired value.

    Declaration

    Objective-C

    - (void)writeValue:(unsigned short)minor
            completion:(nonnull ESTSettingIBeaconMinorCompletionBlock)completion;

    Swift

    func writeValue(_ minor: UInt16, completion: @escaping ESTSettingIBeaconMinorCompletionBlock)

    Parameters

    minor

    Minor 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:(unsigned short)minor;

    Swift

    class func validationError(forValue minor: UInt16) -> Error?

    Parameters

    minor

    Minor value.

    Return Value

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