Documentation ¶
Index ¶
- type CallbackDictionary
- func (cd *CallbackDictionary) AddAction(callbackType CallbackType, action func(result *dji.DJIResult)) uint32
- func (cd *CallbackDictionary) Clear()
- func (cd *CallbackDictionary) Invoke(callbackType CallbackType, param *dji.DJIResult)
- func (cd *CallbackDictionary) RemoveAction(callbackType CallbackType, seq uint32)
- func (cd *CallbackDictionary) SetAction(callbackType CallbackType, seq uint32, action func(result *dji.DJIResult))
- type CallbackType
- type DJICommandController
- type DJIListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackDictionary ¶
type CallbackDictionary struct {
// contains filtered or unexported fields
}
func NewCallbackDictionary ¶
func NewCallbackDictionary() *CallbackDictionary
func (*CallbackDictionary) AddAction ¶
func (cd *CallbackDictionary) AddAction(callbackType CallbackType, action func(result *dji.DJIResult)) uint32
func (*CallbackDictionary) Clear ¶
func (cd *CallbackDictionary) Clear()
func (*CallbackDictionary) Invoke ¶
func (cd *CallbackDictionary) Invoke(callbackType CallbackType, param *dji.DJIResult)
func (*CallbackDictionary) RemoveAction ¶
func (cd *CallbackDictionary) RemoveAction(callbackType CallbackType, seq uint32)
func (*CallbackDictionary) SetAction ¶
func (cd *CallbackDictionary) SetAction(callbackType CallbackType, seq uint32, action func(result *dji.DJIResult))
type DJICommandController ¶
type DJICommandController interface { Init() UnInit() unitybridge.IEventHandler StartListeningOnKey(key dji.DJIKeys, listener interface{}, callback func(*dji.DJIResult), fetchFromCache bool) SetValueForKeyWithNumber(key dji.DJIKeys, value int64, callback func(*dji.DJIResult)) PerformAction(key dji.DJIKeys, callback func(*dji.DJIResult)) PerformActionWithParam(key dji.DJIKeys, value dji.DJIParamValue, callback func(*dji.DJIResult)) DirectSendValue(key dji.DJIKeys, value int64) GetValueForKey(key dji.DJIKeys, callback func(*dji.DJIResult)) }
func DJICommandControllerInstance ¶
func DJICommandControllerInstance() DJICommandController
type DJIListener ¶
func NewDJIListener ¶
func NewDJIListener(name string, callback func(result *dji.DJIResult)) *DJIListener
Click to show internal directories.
Click to hide internal directories.