ESTSettingNearableEddystoneURL

@interface ESTSettingNearableEddystoneURL : ESTSettingReadWrite <NSCopying>

ESTSettingNearableEddystoneURL represents Settings EddystoneURL value.

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

    See

    +[ESTSettingNearableEddystoneURL validationErrorForValue:]

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(nonnull NSString *)eddystoneURL;

    Swift

    init(value eddystoneURL: String)

    Parameters

    eddystoneURL

    Settings EddystoneURL value.

    Return Value

    Initialized object. Nil if validation fails.

  • Returns current value of Settings EddystoneURL setting.

    Declaration

    Objective-C

    - (nonnull NSString *)getValue;

    Swift

    func getValue() -> String

    Return Value

    Settings EddystoneURL value.

  • Method allows to read value of initialized Settings EddystoneURL setting object.

    Declaration

    Objective-C

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

    Swift

    func readValue(completion: @escaping ESTSettingNearableEddystoneURLCompletionBlock)

    Parameters

    completion

    Block to be invoked when operation is complete.

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

    Declaration

    Objective-C

    - (void)writeValue:(nonnull NSString *)eddystoneURL
            completion:
                (nonnull ESTSettingNearableEddystoneURLCompletionBlock)completion;

    Swift

    func writeValue(_ eddystoneURL: String, completion: @escaping ESTSettingNearableEddystoneURLCompletionBlock)

    Parameters

    eddystoneURL

    EddystoneURL 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:(nonnull NSString *)eddystoneURL;

    Swift

    class func validationError(forValue eddystoneURL: String) -> Error?

    Parameters

    eddystoneURL

    EddystoneURL value.

    Return Value

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