Package com.unblu.sdk.core.callback
Interface BackButtonCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for native back button presses while the Unblu UI is displayed.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handlePress
(boolean hasBackStack) Called whenever the native back button is pressed while the Unblu UI is displayed.
-
Method Details
-
handlePress
boolean handlePress(boolean hasBackStack) Called whenever the native back button is pressed while the Unblu UI is displayed.- Parameters:
hasBackStack
- is true if there is still some back stack in the webView, false otherwise- Returns:
- true if the press of the button is handled by the callback, false if the SDK should handle it.
-