miniapp / com.rakuten.tech.mobile.miniapp / MiniApp
MiniApp
abstract class MiniApp
This represents the contract between the consuming application and the SDK by which operations in the mini app ecosystem are exposed. Should be accessed via MiniApp.instance.
Functions
create | Creates a mini app.abstract suspend fun create(info: MiniAppInfo ): MiniAppDisplay |
fetchInfo | Fetches meta data information of a mini app.abstract suspend fun fetchInfo(appId: String ): MiniAppInfo |
listMiniApp | Fetches and lists out the mini applications available in the MiniApp Ecosystem.abstract suspend fun listMiniApp(): List < MiniAppInfo > |
Companion Object Functions
instance | Instance of MiniApp which uses the default config settings, as defined in AndroidManifest.xml. For usual scenarios the default config suffices. However, should it be required to change the config at runtime for QA purpose or similar, another MiniAppSdkConfig can be provided for customization.fun instance(settings: MiniAppSdkConfig = defaultConfig): MiniApp |