ESTSettingEddystoneUIDPower
@interface ESTSettingEddystoneUIDPower : ESTSettingReadWrite <NSCopying>
ESTSettingEddystoneUIDPower represents Eddystone UID Power value.
-
Designated initializer. Validates provided value internally with +validationErrorForValue:.
See
+[ESTSettingEstimoteLocationPower validationErrorForValue:]
Declaration
Objective-C
- (instancetype _Nullable)initWithValue:(ESTEddystoneUIDPower)power;Swift
init?(value power: ESTEddystoneUIDPower)Parameters
powerEddystone UID Power value.
Return Value
Initialized object. Nil if validation fails.
-
Returns current value of Eddystone UID Power setting.
Declaration
Objective-C
- (ESTEddystoneUIDPower)getValue;Swift
func getValue() -> ESTEddystoneUIDPowerReturn Value
Eddystone UID Power value.
-
Method allows to read value of initialized Eddystone UID Power setting object.
Declaration
Objective-C
- (void)readValueWithCompletion: (nonnull ESTSettingEddystoneUIDPowerCompletionBlock)completion;Swift
func readValue(completion: @escaping ESTSettingEddystoneUIDPowerCompletionBlock)Parameters
completionBlock to be invoked when operation is complete.
-
Method allows to create write operation from already initialized Eddystone UID Power setting object. Value provided during initialization will be used as a desired value.
Declaration
Objective-C
- (void)writeValue:(ESTEddystoneUIDPower)power completion: (nonnull ESTSettingEddystoneUIDPowerCompletionBlock)completion;Swift
func writeValue(_ power: ESTEddystoneUIDPower, completion: @escaping ESTSettingEddystoneUIDPowerCompletionBlock)Parameters
powerPower value to be written to the device.
completionBlock 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:(ESTEddystoneUIDPower)power;Swift
class func validationError(forValue power: ESTEddystoneUIDPower) -> Error?Parameters
powerPower value.
Return Value
Error object describing why validation failed. Nil if validation passes.
View on GitHub
ESTSettingEddystoneUIDPower Class Reference