public interface

InteractiveListener

implements CancellableListener<T, U, V> InteractiveAPI
com.amazon.identity.auth.device.interactive.InteractiveListener<T, U, V>
Known Indirect Subclasses

Class Overview

Defines the callbacks and other facets of a listener that handles the responses of interactive (out-of-app) flows.

If you are building your own interactive workflow using AmazonWorkflow, use the BaseWorkflowListener instead of implementing against this interface directly.{@since 3.0 }

Summary

Public Methods
abstract void onCancel(U cancellation)
The interactive request for this listener was cancelled.
abstract void onError(V e)
The interactive request for this listener failed.
abstract void onSuccess(T result)
The interactive request for this listener completed successfully.
[Expand]
Inherited Methods
From interface com.amazon.identity.auth.device.api.CancellableListener
From interface com.amazon.identity.auth.device.api.Listener
From interface com.amazon.identity.auth.device.interactive.InteractiveAPI

Public Methods

public abstract void onCancel (U cancellation)

The interactive request for this listener was cancelled.

Parameters
cancellation An object describing the cancellation of the flow.

public abstract void onError (V e)

The interactive request for this listener failed.

Parameters
e An object describing the failure.

public abstract void onSuccess (T result)

The interactive request for this listener completed successfully.

Parameters
result The data returned as part of successful completion.