miniapp / com.rakuten.tech.mobile.miniapp / MiniAppDisplay / getMiniAppView
getMiniAppView
abstract suspend fun ~~getMiniAppView~~():
View
Deprecated: Please replace with getMiniAppView(Context)
Provides the view associated with the mini app to the caller for showing the mini app.
Return
View as mini app’s view with LayoutParams set to match the parent’s dimensions.
This version of retrieval creates the mini app view which doesn’t render some of the native elements of web tech. We recommend switching to the new API.
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.
Should 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.