[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[dji-ios] 35 Components-Battery

"
Battery
	DJIBattery
	DJIBatteryState
"

DJIBattery buildStaticFunctions: #(
	#(setAggregationDelegate: #(_delegate))
	#(aggregationDelegate NSObject)
)!
DJIBattery buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJIBattery buildNumberGetters: #(
	index numberOfCells
)!
DJIBattery buildFunctions: #(
	isSmartBattery
	#(getWarningRecordsWithCompletion: #(_completion))
	#(getLatestWarningRecordWithCompletion: #(_completion))
	#(getCellVoltagesWithCompletion: #(_completion))
	#(pairBatteriesWithCompletion: #(_completion))
	#(getPairingStateWithCompletion: #(_completion))
	#(setSelfDischargeInDays:withCompletion: #(days _completion))
	#(getSelfDischargeInDaysWithCompletion: #(_completion))
	#(setNumberOfCells:withCompletion: #(numberOfCells _completion))
	#(setLevel1CellVoltageThreshold:withCompletion: #(voltage _completion))
	#(getLevel1CellVoltageThresholdWithCompletion: #(_completion))
	#(setLevel2CellVoltageThreshold:withCompletion: #(voltage _completion))
	#(getLevel2CellVoltageThresholdWithCompletion: #(_completion))
	#(setLevel1CellVoltageBehavior:withCompletion: #(_behavior _completion))
	#(getLevel1CellVoltageBehaviorWithCompletion: #(_completion))
	#(setLevel2CellVoltageBehavior:withCompletion: #(_behavior _completion))
	#(getLevel2CellVoltageBehaviorWithCompletion: #(_completion))
)!

DJIBatteryState buildNumberAccessors: #(
	fullChargeCapacity
	chargeRemaining
	chargeRemainingInPercent
	voltage
	current
	lifetimeRemaining
	temperature
	numberOfDischarges
	cellVoltageLevel
)!
DJIBatteryState buildBooleanAccessors: #(
	isBeingCharged
	isInSingleBatteryMode
)!

DJIBatteryWarningRecord buildBooleanGetters: #(
	isCurrentOverloaded
	isOverHeated
	isLowTemperature
	isShortCircuited
	isCustomDischargeEnabled
)!
DJIBatteryWarningRecord buildNumberGetters: #(
	lowVoltageCellIndex
	damagedCellIndex
)!

DJIBatteryOverview buildNumberGetters: #(
	index chargeRemainingInPercent
)!
DJIBatteryOverview buildBooleanGetters: #(
	isConnected
)!

DJIBatteryAggregationState buildNumberGetters: #(
	numberOfConnectedBatteries
	voltage
	current
	fullChargeCapacity
	chargeRemaining
	chargeRemainingInPercent
	highestTemperature
)!
DJIBatteryAggregationState buildGetters: #(
	batteryOverviews
)!
DJIBatteryAggregationState buildBooleanGetters: #(
	isAnyBatteryDisconnected
	isVoltageDifferenceDetected
	isLowCellVoltageDetected
	isCellDamaged
	isFirmwareDifferenceDetected
)!