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

api[dji-ios] 53 KeyedInterface

"
- Keyed Interface
	DJIKeyManager
	DJIKey
	DJIKeyedValue
	DJIMissionKey
	DJIProductKey
	DJIBatteryKey
	DJICameraKey
	DJIGimbalKey
	DJIFlightControllerKey
	DJIRemoteControllerKey
	DJIAirLinkKey
	DJIHandheldControllerKey
"

DJIKeyManager buildFunctions: #(
	#(getValueForKey: #(_key) DJIKeyedValue)
	#(getValueForKey:withCompletion: #(_key _completion))
	#(setValue:forKey:withCompletion: #(_value _key _completion))
	#(performActionForKey:withArguments:andCompletion: #(_key _args _completion))
	#(startListeningForChangesOnKey:withListener:andUpdateBlock: #(_key _listener _updateBlock))
	#(stopListeningOnKey:ofListener: #(_key _listener))
	#(stopAllListeningOfListeners: #(_listener))
)!

DJIKey buildBooleanAccessors: #(
	isComponentKey isMissionKey
)!
DJIKey buildGetters: #( param )!
DJIKey buildStaticFunctions: #(
	#(keyWithParam: #(param) DJIKey)
	#(keyWithIndex:andParam: #(index param) DJIKey)
	#(keyWithIndex:subElement:subIndex:andParam: #(index subElement subIndex param) DJIKey)
)!

DJIKeyedValue buildTypedGetters: #(
	#(value NSObject)
)!
DJIKeyedValue buildGetters: #(
	charValue
	unsignedCharValue
	stringValue
)!
DJIKeyedValue buildBooleanGetters: #(
	boolValue
)!
DJIKeyedValue buildNumberGetters: #(
	shortValue
	unsignedShortValue
	intValue
	unsignedIntValue
	longValue
	unsignedLongValue
	longLongValue
	unsignedLongLongValue
	floatValue
	doubleValue
	integerValue
	unsignedIntegerValue
)!

DJIProductKey buildStaticFunctions: #(
	#(modelNameKey DJIProductKey)
)!