miniapp / com.rakuten.tech.mobile.miniapp / MiniAppDisplay

MiniAppDisplay

interface MiniAppDisplay : LifecycleObserver

This represents the contract by which the host app can interact with the display unit of the mini app. This contract complies to Android’s LifecycleObserver contract, and when made to observe the lifecycle, it automatically clears up the view state and any services registered with.

Functions

destroyView Upon invocation, destroys necessary view state and any services registered with. When the consumer has finished consuming, it is advisable to release the resources. Usual scenarios are when the app components are amidst their destroy cycle.abstract fun destroyView(): Unit
getMiniAppView Provides the view associated with the mini app to the caller for showing the mini app.abstract suspend fun getMiniAppView(activityContext: Context): View?
navigateBackward Navigates one level back, in the call stack, if possible.abstract fun navigateBackward(): Boolean
navigateForward Navigates one level forward from current position, in the call hierarchy, if possible.abstract fun navigateForward(): Boolean