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