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

getMiniAppView

abstract suspend fun getMiniAppView(activityContext: Context): View?

Provides the view associated with the mini app to the caller for showing the mini app.

Parameters

activityContext - is used by the view for initializing the internal services. Must be the context of activity to ensure that all standard html components work properly.

Exceptions

MiniAppSdkException - when a non-matching context is supplied

Return View as mini app’s view with LayoutParams set to match the parent’s dimensions.