public interface

CancellableListener

implements Listener<T, U>
com.amazon.identity.auth.device.api.CancellableListener<T, U, V>
Known Indirect Subclasses

Class Overview

A generic type of listener that can be cancelled.{@since 3.0 }

Summary

Public Methods
abstract void onCancel(U cancellation)
The API operation was cancelled.
abstract void onError(V e)
There was an error during the API execution.
abstract void onSuccess(T response)
The API executed successfully.
[Expand]
Inherited Methods
From interface com.amazon.identity.auth.device.api.Listener

Public Methods

public abstract void onCancel (U cancellation)

The API operation was cancelled.

Parameters
cancellation The object that describes the cancellation.

public abstract void onError (V e)

There was an error during the API execution.

Parameters
e The error that the developer has to handle.

public abstract void onSuccess (T response)

The API executed successfully.

Parameters
response The object containing relevant information.