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

api[dji-ios] 21 Products

"Products
	DJIAircraft
	DJIHandheld
	DJIBaseProduct
	DJIVideoFeeder
"
 
DJIBaseProduct buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJIBaseProduct buildGetters: #(
	model
)!
DJIBaseProduct buildTypedGetters: #(
	#(camera DJICamera)
	#(gimbal DJIGimbal)
	#(battery DJIBattery)
	#(airLink DJIAirLink)
	#(videoFeeder DJIVideoFeeder)
)!
DJIBaseProduct buildFunctions: #(
	#(getFirmwarePackageVersionWithCompletion: #(_block))
	#(setName:withCompletion: #(name _completion))
	#(getNameWithCompletion: #(_completion))
)!

DJIAircraft buildTypedAccessors: #(
	#(flightController DJIFlightController)
	#(batteries NSArray)
	#(remoteController DJIRemoteController)
	#(mobileRemoteController DJIMobileRemoteController)
)!

! DJIAircraft methodsFor: #batteries !
allBatteries
	" Returns an array with the batteries of the receiver. "

	| all |
	all := self batteries.
	^all isNil ifTrue: [#()] ifFalse: [
		all asArray collect: [:each| DJIBattery @ each ]
	]! !

DJIVideoFeed buildNumberAccessors: #(
	physicalSource
)!
DJIVideoFeed buildFunctions: #(
	#(addListener:withQueue: #(_videoFeedListener _queue))
	#(removeListener: #(_videoFeedListener))
	removeAllListeners
)!

NSObject
	subclass: #DJIVideoFeeder
	category: #Products!
DJIVideoFeeder buildTypedGetters: #(
	#(primaryVideoFeed DJIVideoFeed)
	#(secondaryVideoFeed DJIVideoFeed)
)!
DJIVideoFeeder buildFunctions: #(
	#(addVideoFeedSourceListener: #(_sourceListener))
	#(removeVideoFeedSourceListener: #(_sourceListener))
	removeAllListeners
)!

DJIHandheld buildTypedGetters: #(
	#(handheldController DJIHandheldController)
)!