TaskCompletionListener

Generic listener interface for receiving the result of an asynchronous task.

The task completes with either a success result via onComplete or an error via onError.

Code Example:


participant.captureImage(720, 1280, new TaskCompletionListener<String, String>() {
    
    public void onComplete(String base64Image) {
        // Use the captured image
    }

    
    public void onError(String error) {
        Log.e("Capture", "Failed: " + error);
    }
});

Parameters

<T>

the type of the success result

<K>

the type of the error result

See also

Participant.captureImage()

Meeting.uploadBase64File()

Functions

Link copied to clipboard
abstract fun onComplete(@Nullable data: T)
Called when the task completes successfully.
Link copied to clipboard
abstract fun onError(@Nullable error: K)
Called when the task fails with an error.