ESTSettingPowerBatteryPercentage

@interface ESTSettingPowerBatteryPercentage : ESTSettingReadOnly <NSCopying>

ESTSettingPowerBatteryPercentage represents Power BatteryPercentage value.

  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(NSUInteger)batteryPercentage;

    Swift

    init(value batteryPercentage: UInt)

    Parameters

    batteryPercentage

    Power BatteryPercentage value.

    Return Value

    Initialized object.

  • Returns current value of Power BatteryPercentage setting.

    Declaration

    Objective-C

    - (NSUInteger)getValue;

    Swift

    func getValue() -> UInt

    Return Value

    Power BatteryPercentage value.

  • Method allows to read value of initialized Power BatteryPercentage setting object.

    Declaration

    Objective-C

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

    Swift

    func readValue(completion: @escaping ESTSettingPowerBatteryPercentageCompletionBlock)

    Parameters

    completion

    Block to be invoked when the operation is complete.

    Return Value

    Initialized operation object.