onRestoreSuccess

abstract fun onRestoreSuccess(profile: AdaptyProfile, context: Context)

This callback is invoked when a successful restore is made.

Check if the AdaptyProfile object contains the desired access level, and if so, you can navigate back from the paywall.

Parameters

profile

An AdaptyProfile object containing up to date information about the user.

context

A UI Context within which the event occurred.