WebUiActivity

open class WebUiActivity : SbBaseActivity, WebUiFragment.Listener, WebUiNetworkErrorFragment.Listener

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.

Constructors

WebUiActivity
Link copied to clipboard
fun WebUiActivity()

Types

Companion
Link copied to clipboard
object Companion

Functions

activityOnBackPressed
Link copied to clipboard
protected fun activityOnBackPressed()
Convenience method to call AppCompatActivity.onBackPressed in case it is directly required by subclasses of this Activity
callSetContentView
Link copied to clipboard
protected open fun callSetContentView()
Overridable function in charge of calling setContentView.
createWebUiFragment
Link copied to clipboard
protected open fun createWebUiFragment(): WebUiFragment
Overridable function used to create the WebUiFragment held in this Activity.
createWebUiNetworkErrorFragment
Link copied to clipboard
protected open fun createWebUiNetworkErrorFragment(): WebUiNetworkErrorFragment
Overridable function used to create the WebUiFragment held in this Activity.
onBackPressed
Link copied to clipboard
open override fun onBackPressed()
This back pressed override will ensure web navigation takes precedence.
onDisplayNetworkError
Link copied to clipboard
open override fun onDisplayNetworkError(networkNotAvailable: Boolean)
Handles when the network error fragment needs to be navigated to
onNetworkErrorClose
Link copied to clipboard
open override fun onNetworkErrorClose()
Handles the 'okay' request from the error view
onNetworkErrorRetry
Link copied to clipboard
open override fun onNetworkErrorRetry()
Handles the request to retry loading the web ui
onRequestFinish
Link copied to clipboard
open override fun onRequestFinish(reason: UiFinishReason)
Handle ending the WebUI flow (eg.

Properties

webContainerId
Link copied to clipboard
protected open val webContainerId: Int
The resource id of the view that the WebUiFragment will be placed in.
webFragment
Link copied to clipboard
protected val webFragment: WebUiFragment?
The instance of WebUiFragment that is being displayed by the activity
webInitialNavigation
Link copied to clipboard
protected open val webInitialNavigation: NavigationIntent
The initial NavigationIntent that will be loaded into the WebUiFragment
webTheme
Link copied to clipboard
protected open val webTheme: WebTheme?
The provided WebTheme, if any, that will be passed to the WebUiFragment

Inheritors

CaptureWithMetadataFlowActivity
Link copied to clipboard