public interface

Listener

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

Class Overview

A generic type of callback with parameterized success and failure return types for asynchronous operations.{@since 3.0 }

Summary

Public Methods
abstract void onError(U e)
There was an error during the API execution.
abstract void onSuccess(T response)
The API executed successfully.

Public Methods

public abstract void onError (U 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.