dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWithTwoParam<X, Y> |
DJI completion callback with parameters X, Y, which will be defined where it is called. Completion callback for asynchronous operations. This call back is used for methods that return at an unknown future time.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void | onFailure(DJIError error) Invoked with the error code when the asynchronous call fails to complete normally. | ||||||||||
abstract void | onSuccess(X x, Y y) Invoked with the result requested when the asynchronous call completes successfully. |
Invoked with the error code when the asynchronous call fails to complete normally. Override to handle in your own code.
Invoked with the result requested when the asynchronous call completes successfully. Override to handle in your own code.