WebUiActivity

Barebones Activity wrapper for the WebUiFragment which contains minimal functionality, but can be used directly. This activity can also be extended to get base WebUi functionality, adding additional UI and functionality as required.

Available Intent arguments:

  • ARG_NAVIGATION_OVERRIDE An argument of type NavigationIntent. Provide this argument in order to start the Spend Manager UI on a specific page.

  • ARG_WEB_THEME_OVERRIDE An argument of type WebTheme. Provide this argument if you want to programmatically override the theme used by the Spend Manager UI. If not provided, colours from Theme.Sensibill will be used.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onBackPressed()

This back pressed override will ensure web navigation takes precedence. When overriding this, the default Activity.onBackPressed is still made available in case it is required via activityOnBackPressed.

Link copied to clipboard
open override fun onDisplayNetworkError(networkNotAvailable: Boolean)

Handles when the network error fragment needs to be navigated to

Link copied to clipboard
open override fun onNetworkErrorClose()

Handles the 'okay' request from the error view

Link copied to clipboard
open override fun onNetworkErrorRetry()

Handles the request to retry loading the web ui

Link copied to clipboard
open override fun onRequestFinish(reason: UiFinishReason)

Handle ending the WebUI flow (eg. finishing Activity, navigating back to previous page)