Launch
Simple
Arcplay.launch(context /* activity context */)Parameter
Data type
Mandatory
Advanced
1. Deeplink Content Page
2. Init & Launch
Last updated
Arcplay.launch(context /* activity context */)Last updated
Arcplay.launch(context, "<contentId>") val initConfig = InitConfig(
accountId = "<<accountId provided by Arcplay>>",
userId = "<<userId of your app's user>>"
clientId = "<<clientId of your app instance, this is optional if userID is provided>>"
)
Arcplay.initAndLaunch(this, initConfig, "<contentId>", object : ArcplayInitListener {
override fun onSuccess() {
Log.i("Arcplay", "Init and Launch success")
appendLogInUI("InitAndLaunch success")
}
override fun onFailure(error: ErrorData) {
Log.e("Arcplay", "Init and Launch failed : $error")
appendLogInUI("InitAndLaunch failed : $error")
}
})