# class CompletionCallbackWithParam

    interface CompletionCallbackWithParam<T>

Package: | dji.v5.common.callback

##### Description:

The callback which carries a return message from an asynchronous operation.

##### Class Members:

method
onSuccess

###### method onSuccess

    void onSuccess(T t)

Package: | dji.v5.common.callback

##### Description:

The callback means the asynchronous operation is done without any errors.

##### Input Parameters:

T t | Return parameter T.

method
onFailure

###### method onFailure

    void onFailure(@NonNull IDJIError error)

Package: | dji.v5.common.callback

##### Description:

The callback will return and carry an "error" object when the asynchronous operation is done. If the operation is done without any errors, the "error" object is`null`.

##### Input Parameters:

@NonNull IDJIError error | Error code

×

## Search Mobile SDK Document

{{searchCount}} Results

- ### {{{(item.highlights && item.highlights.title) || item.title}}}

  {{{(item.highlights && item.highlights.content[0]) || item.title}}}

Load More
Loading...
Not Found