openSDKPortal

@JvmName(name = "openSDKPortal")
fun RakutenReward.openSDKPortal(requestCode: Int = 515): Boolean

Open SDK Portal UI

Receiver

RakutenReward

Return

true - launch SDK portal successfully
false - failed to launch SDK portal

Sample to handle closed event

RakutenReward.openSDKPortal(100)

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
if (requestCode == 100) {
// handle closed event
}
}

Since v4.0.0, User Consent feature is integrated into SDK.

If user have not provide consent yet, RakutenReward.requestForConsent API will be called to request for user's consent. Once user provided consent will proceed to open SDK Portal

Parameters

requestCode

Request Code to handle SDK portal closed event in Activity.onActivityResult


fun RakutenReward.openSDKPortal(callback: ActivityResultCallback<ActivityResult>): Boolean

Open SDK Portal UI

Receiver

RakutenReward

Return

true - launch SDK portal successfully
false - failed to launch SDK portal

Sample to handle closed event

RakutenReward.openSDKPortal {
// handle closed event
}

Since

v3.4.2

Since v4.0.0, User Consent feature is integrated into SDK.

If user have not provide consent yet, RakutenReward.requestForConsent API will be called to request for user's consent. Once user provided consent will proceed to open SDK Portal

Parameters

callback

ActivityResultCallback to be triggered when SDK portal is closed.