DJI Mobile SDK Documentation

      class DJIBatteryKey

      @interface DJIBatteryKey : DJIKey
      Header:DJIBatteryKey.h
      Inherits From:DJIKey
      Description:

      DJIBatteryKey is a key dedicated to accessing Battery related attributes.

      Class Members:
      Battery AggregationKey
      class method
      class method keyWithAggregationParam
      + (nullable instancetype)keyWithAggregationParam:(nonnull NSString *)aggregationParam
      Header:DJIBatteryKey.h
      Description:

      Creates a Battery Aggregation key.

      Input Parameters:
      nonnull NSString * aggregationParamA valid String-formatted key as defined in DJIBatteryKey headers.
      Return:
      nullable instancetypeA valid key object or nil if an error occurred..
      Class Keys:

      DJIBatteryParamLevel1CellVoltageBehavior

      Access:

      Get, Set

      Type:

      DJIBatteryLowVoltageBehavior

      API:

      setLevel1CellVoltageBehavior:withCompletion

      getLevel1CellVoltageBehaviorWithCompletion

      DJIBatteryLowVoltageBehavior

      DJIBatteryParamLevel2CellVoltageBehavior

      Access:

      Get, Set

      Type:

      DJIBatteryLowVoltageBehavior

      API:

      setLevel2CellVoltageBehavior:withCompletion

      getLevel2CellVoltageBehaviorWithCompletion

      DJIBatteryLowVoltageBehavior

      DJIBatteryParamAggregationState

      Access:

      Get

      Type:

      DJIBatteryAggregationState

      API:

      DJIBatteryAggregationState

      DJIBatteryParamHeatingState

      Access:

      Get

      Type:

      NSUInteger

      API:

      -

      DJIBatteryParamWarningInformationRecords

      Access:

      Get

      Type:

      NSArray<DJIBatteryWarningRecord>

      API:

      getWarningRecordsWithCompletion

      DJIBatteryParamIsBeingCharged

      Access:

      Push

      Type:

      Boolean

      API:

      isBeingCharged

      DJIBatteryParamLifetimeRemainingInPercent

      Access:

      Push

      Type:

      NSUInteger

      API:

      lifetimeRemaining

      DJIBatteryParamCurrent

      Access:

      Push

      Type:

      NSInteger

      API:

      current

      DJIBatteryComponent

      Access:

      -

      Type:

      -

      API:

      -

      DJIBatteryParamVoltage

      Access:

      Push

      Type:

      NSUInteger

      API:

      voltage

      DJIBatteryParamTemperature

      Access:

      Push

      Type:

      Double

      API:

      temperature

      DJIBatteryParamPairBatteries

      Access:

      Action

      Type:

      API:

      pairBatteriesWithCompletion

      DJIBatteryParamSelfDischargeInDays

      Access:

      Get, Set

      Type:

      NSUInteger

      API:

      setSelfDischargeInDays:withCompletion

      getSelfDischargeInDaysWithCompletion

      DJIBatteryParamPairState

      Access:

      Get

      Type:

      DJIBatteryPairingState

      API:

      getPairingStateWithCompletion

      DJIBatteryPairingState

      DJIBatteryParamCellVoltages

      Access:

      Push

      Type:

      NSArray

      API:

      getCellVoltagesWithCompletion

      DJIBatteryParamIsInSingleBatteryMode

      Access:

      Push

      Type:

      Boolean

      API:

      isInSingleBatteryMode

      DJIBatteryParamLatestWarningRecord

      Access:

      Push

      Type:

      DJIBatteryWarningRecord

      API:

      getLatestWarningRecordWithCompletion

      DJIBatteryWarningRecord

      DJIBatteryParamCellVoltageLevel

      Access:

      Push

      Type:

      DJIBatteryCellVoltageLevel

      API:

      cellVoltageLevel

      DJIBatteryCellVoltageLevel

      DJIBatteryParamNumberOfDischarges

      Access:

      Push

      Type:

      NSUInteger

      API:

      numberOfDischarges

      DJIBatteryParamChargeRemaining

      Access:

      Push

      Type:

      NSUInteger

      API:

      chargeRemaining

      DJIBatteryParamChargeRemainingInPercent

      Access:

      Push

      Type:

      NSUInteger

      API:

      chargeRemainingInPercent

      DJIBatteryParamFullChargeCapacity

      Access:

      Push

      Type:

      NSUInteger

      API:

      fullChargeCapacity

      DJIBatteryParamIsSmartBattery

      Access:

      Push, Get

      Type:

      Boolean

      API:

      isSmartBattery

      DJIBatteryParamNumberOfCells

      Access:

      Push, Set, Get

      Type:

      NSUInteger

      API:

      numberOfCells

      setNumberOfCells:withCompletion

      DJIBaateryParamManufactureDate

      Access:

      -

      Type:

      -

      API:

      -

      DJIBatteryParamLevel1CellVoltageThreshold

      Access:

      Get, Set

      Type:

      NSUInteger

      API:

      setLevel1CellVoltageThreshold:withCompletion

      getLevel1CellVoltageThresholdWithCompletion

      DJIBatteryParamLevel2CellVoltageThreshold

      Access:

      Get, Set

      Type:

      NSUInteger

      API:

      setLevel2CellVoltageThreshold:withCompletion

      getLevel2CellVoltageThresholdWithCompletion