onNavigation
callbackNavigationInfo
parameter to examine the target of the user's navigationActivity
using the target field AppState
and Condition
that the app transitioned into. onNavigation
callback invocation, if the user asked for viewing the cart and if the app can navigate to that page successfully, it sets the success condition and returns the NAVIGATION app state.NavigationInfo
ParameterNavigationInfo
contains the breakdown of the original navigation request. It has the following structure:AppState
sAppState
s are supported.NavigationCompleteAppState
): To be returned when the app handles the navigation requestUnsupportedAppState
): To be returned when the app is not ready to handle navigation yet. The Assistant will speak out an appropriate prompt to the user. AppState
'WAITING' (WaitingAppState)
that is common across all UserJourney
types for completing asynchronous operations within the callback. Refer to the Asynchronous Action Handling section for details of how to deal with asynchronous operations.Condition
sCondition
s are supported for each of the AppState
s supported by the AssistantNAVIGATION_COMPLETE (NavigationCompleteAppState)
SUCCESS
TARGET_INVALID
FAILURE