public static interface

DJICommonCallbacks.DJICompletionCallbackWith

dji.common.util.DJICommonCallbacks.DJICompletionCallbackWith<T>

Class Overview

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.

Summary

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.

Public Methods

public abstract void onFailure (DJIError error)

Invoked with error code when the asynchronous call fails to complete normally. Please override to handle in your own code.

public abstract void onSuccess (T t)

Invoked with result requested when the asynchronous call completes successfully. Override to handle in your own code.