External Action
The External Action Plugin is an easy way to handle External states from the navigation of a Player flow.
Usage
The ExternalActionPlugin
adds support for handling EXTERNAL
navigation states in the application. The handler, which can be provided during plugin initialization, receives three parameters:
- state:
NavigationFlowExternalState
provides access to the information defined in theEXTERNAL
state node - options:
ControllerState
provides access to the current player controllers - transition:
(String) -> Unit
is provided to enable the handler to “complete” theEXTERNAL
state and transition using the providedString
value
Usage
In build.gradle
In Player constructor
In Player content
API
Public API available from sources here:
CocoaPods
Add the subspec to your Podfile
Swift Usage
For an example flow with an external state such as:
The plugin can be declared to handle this external state, whether that means integrating an existing platform native experience, or doing headless processing: