vncore / com.venuenext.vncore.protocol / CoreNavigator

CoreNavigator

interface CoreNavigator

/** CoreNavigator VenueNext

This interface allows for an integrator to determine when a user is navigating forward in our SDK flow. Useful when you are handling a custom navigation stack.

This should be fired after every forward navigation. For example navigating from the F&B stands screen to the menu screen.

Created on 9/5/19. Copyright © 2019 VenueNext Inc. All rights reserved. */

Functions

onForwardNavigation

abstract fun onForwardNavigation(): Unit

onPopToFirst

This is called when a flow ending action has been triggered, but the base flow view should still be shown. Ex: MyOrders flow -> starts MyOrders -> order again -> through receipt -> Close button is hit -> pops to MyOrders

abstract fun onPopToFirst(): Unit

onPopToRoot

This is called when the a flow ending action has been triggered. Ex: F&B flow -> starts Stands -> ... -> through receipt -> Close button is hit -> pops to stands inclusively.

abstract fun onPopToRoot(): Unit

onSoftBackNavigation

Called when popBackStack() is called on the current NavController, mostly on software < back button presses.

abstract fun onSoftBackNavigation(): Unit