ESTSettingPowerBatteryLifetime

@interface ESTSettingPowerBatteryLifetime : ESTSettingReadOnly <NSCopying>

ESTSettingPowerBatteryLifetime represents Power BatteryLifetime value.

  • Designated initializer.

    Declaration

    Objective-C

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

    Swift

    init(value batteryLifetime: UInt)

    Parameters

    batteryLifetime

    Power BatteryLifetime value.

    Return Value

    Initialized object.

  • Returns current value of Power BatteryLifetime setting. Value is provided in days.

    Declaration

    Objective-C

    - (NSUInteger)getValue;

    Swift

    func getValue() -> UInt

    Return Value

    Power BatteryLifetime value in days.

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

    Declaration

    Objective-C

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

    Swift

    func readValue(completion: @escaping ESTSettingPowerBatteryLifetimeCompletionBlock)

    Parameters

    completion

    Block to be invoked when the operation is complete.

    Return Value

    Initialized operation object.