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
power
Estimote 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() -> ESTEstimoteLocationPower
Return 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
completion
Block 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
power
Broadcasting Power 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:(ESTEstimoteLocationPower)power;
Swift
class func validationError(forValue power: ESTEstimoteLocationPower) -> Error?
Parameters
power
Power value.
Return Value
Error object describing why validation failed. Nil if validation passes.