public final class

AmazonWorkflow

extends Object
java.lang.Object
   ↳ com.amazon.identity.auth.device.workflow.AmazonWorkflow

Class Overview

This API is intended only for use by Login With Amazon-enabled SDKs.

AmazonWorkflow allows Login With Amazon-enabled SDKs to start their own runtime workflows.{@since 2.1 }

Summary

Public Methods
static void openWorkflow(InteractiveRequest<?, ?, ?, ?> request, String workflowUrl, String workflowToken, Bundle options)
This method handles opening a workflow hosted by Amazon.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void openWorkflow (InteractiveRequest<?, ?, ?, ?> request, String workflowUrl, String workflowToken, Bundle options)

This method handles opening a workflow hosted by Amazon.

This method will assert that at least one listener for the given interactive request is currently registered in the request's RequestContext to ensure that the app developer can handle the response.{@since 3.0 }

Parameters
request The interactive request that this workflow is being opened for.
workflowUrl The URL for the Amazon hosted workflow.
workflowToken Token required to validate and open the workflowUrl.
options Can be null - used for optional settings via Bundle
Throws
ListenerNotFoundException If no listeners are present to handle the given request.
IllegalArgumentException If the required parameters are null or options values are invalid.