presentCodeRedemptionSheet method

Future<void> presentCodeRedemptionSheet()

Opens the store's offer-code redemption: the App Store's offer-code sheet on iOS (16+), Google Play's redeem page on Android. The store reports nothing back; a redeemed code reaches the SDK as a purchase (iOS: the transaction listener; Android: when the app returns to the foreground) and the new access arrives on changes.

Throws a RovenueException (RovenueErrorKind.storeProblem) without a foreground window or Activity.

Implementation

Future<void> presentCodeRedemptionSheet() => _platform.presentCodeRedemptionSheet();