ESTSettingEddystoneTLMInterval

@interface ESTSettingEddystoneTLMInterval : ESTSettingReadWrite <NSCopying>

ESTSettingEddystoneTLMInterval represents Eddystone Telemetry Advertising Interval value.

  • Designated initializer.

    Declaration

    Objective-C

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

    Swift

    init?(value advertisingInterval: UInt16)

    Parameters

    advertisingInterval

    Eddystone Telemetry Advertising Interval value.

    Return Value

    Initialized object.

  • Returns current value of Eddystone Telemetry Advertising Interval setting.

    Declaration

    Objective-C

    - (unsigned short)getValue;

    Swift

    func getValue() -> UInt16

    Return Value

    Eddystone Telemetry Advertising Interval value.

  • Method allows to read value of initialized Eddystone Telemetry Advertising Interval setting object.

    Declaration

    Objective-C

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

    Swift

    func readValue(completion: @escaping ESTSettingEddystoneTLMIntervalCompletionBlock)

    Parameters

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

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

    Declaration

    Objective-C

    - (void)writeValue:(unsigned short)advertisingInterval
            completion:
                (nonnull ESTSettingEddystoneTLMIntervalCompletionBlock)completion;

    Swift

    func writeValue(_ advertisingInterval: UInt16, completion: @escaping ESTSettingEddystoneTLMIntervalCompletionBlock)

    Parameters

    advertisingInterval

    Advertising Interval 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)advertisingInterval;

    Swift

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

    Parameters

    advertisingInterval

    AdvertisingInterval value.

    Return Value

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