ESTSettingEddystoneEIDInterval

@interface ESTSettingEddystoneEIDInterval : ESTSettingReadWrite <NSCopying>

ESTSettingEddystoneEIDInterval represents EddystoneEID Interval value.

  • Designated initializer. Validates provided value internally with +validationErrorForValue:.

    See

    +[ESTSettingEddystoneEIDInterval validationErrorForValue:]

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(unsigned short)interval;

    Swift

    init(value interval: UInt16)

    Parameters

    interval

    EddystoneEID Interval value.

    Return Value

    Initialized object. Nil if validation fails.

  • Returns current value of EddystoneEID Interval setting.

    Declaration

    Objective-C

    - (unsigned short)getValue;

    Swift

    func getValue() -> UInt16

    Return Value

    EddystoneEID Interval value.

  • Method allows to read value of initialized EddystoneEID Interval setting object.

    Declaration

    Objective-C

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

    Swift

    func readValue(completion: @escaping ESTSettingEddystoneEIDIntervalCompletionBlock)

    Parameters

    completion

    Block to be invoked when operation is complete.

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

    Declaration

    Objective-C

    - (void)writeValue:(unsigned short)interval
            completion:
                (nonnull ESTSettingEddystoneEIDIntervalCompletionBlock)completion;

    Swift

    func writeValue(_ interval: UInt16, completion: @escaping ESTSettingEddystoneEIDIntervalCompletionBlock)

    Parameters

    interval

    Interval 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:(unsigned short)interval;

    Swift

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

    Parameters

    interval

    Interval value.

    Return Value

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