//Granify Android SDK/com.granifyinc.granifysdk.models/Navigator
Navigator
[androidJvm]
interface Navigator
Defines callbacks that Granify can call to navigate to different pages within your application. These callbacks will be invoked when a user engages with the call-to-action on a Granify campaign.
Implement this interface using whatever mechanism your app requires to navigate between views (e.g. intents, deep links, fragment transactions, etc.).
No guarantees are made regarding the thread the callbacks will be invoked on.
Functions
Name | Summary |
---|---|
navigateToCart | [androidJvm] abstract fun navigateToCart() Navigates from the current page to the cart. |
navigateToProduct | [androidJvm] abstract fun navigateToProduct(productId: String, sku: String?) Navigates from the current page to a product page. |