dji.common.util.DJICommonCallbacks.DJICompletionCallbackWith<T> |
DJI completion callback with parameter T, the T will be defined where it is called. Completion callback for asynchronous operations. This completion block is used for methods that return at an unknown future time.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onFailure(DJIError error)
Invoked with error code when the asynchronous call fails to complete
normally.
| ||||||||||
abstract void |
onSuccess(T t)
Invoked with result requested when the asynchronous call completes
successfully.
|
Invoked with error code when the asynchronous call fails to complete normally. Please override to handle in your own code.
Invoked with result requested when the asynchronous call completes successfully. Override to handle in your own code.