java.lang.Object | |
↳ | com.amazon.identity.auth.device.workflow.BaseWorkflowListener<T, U, V> |
To create your own interactive workflow, extend this listener and implement all abstract methods besides
onSuccess
, onCancel
, and onError
(which will be implemented by the app
developer). On successful completion of a workflow, you will receive a JSON object containing the arbitrary data
returned from your server-side runtime workflow.{@since 3.0
}
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is implemented to delegate interactive responses to your implementation of the
onWorkflow* methods. | |||||||||||
This method is implemented to delegate interactive responses to your implementation of the
onWorkflow* methods. | |||||||||||
This method is implemented to delegate interactive responses to your implementation of the
onWorkflow* methods. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called on when an interactive workflow has been cancelled and cannot be resumed.
| |||||||||||
Called upon failure of the interactive workflow.
| |||||||||||
Called on successful completion of your workflow.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
This method is implemented to delegate interactive responses to your implementation of the
onWorkflow*
methods.
This method is implemented to delegate interactive responses to your implementation of the
onWorkflow*
methods.
This method is implemented to delegate interactive responses to your implementation of the
onWorkflow*
methods.
Called on when an interactive workflow has been cancelled and cannot be resumed. When the workflow is rendered in the native browser, it cannot be known if the workflow is cancelled.{@since 3.0 }
context | The current Android Context. |
---|---|
cancellation | Describes the cancellation. |
Called upon failure of the interactive workflow. The implementation of this should call onError(U)
, passing
the wrapped exception
if desired/necessary.
Will be called for the following errors:
If the APIKey orworkflowToken
is incorrect, ERROR_ACCESS_DENIED
will be returned.
Any other possible errors will be encapsulated in a ERROR_SERVER_REPSONSE
.{@since 3.0
}
context | The current Android Context. |
---|---|
exception | The error that occurred. |
Called on successful completion of your workflow. Implement this and call the appropriate developer-facing listener method.{@since 3.0 }
context | The current Android Context. |
---|---|
result | The arbitrary data returned by your workflow. |