openOfferWall static method

Future<void> openOfferWall({
  1. required String placementId,
})

Opens the Offer Wall for the user. The Offer Wall allows users to complete offers in exchange for rewards. This method should be called only if isOfferWallReady returns true. The placementId is used to identify the specific Offer Wall configuration.

Implementation

static Future<void> openOfferWall({required String placementId}) async {
  try {
    await _channel.invokeMethod('openOfferWall', {
      'placementId': placementId,
    });
  } catch (e) {
    debugPrint('Error opening Offer Wall: $e');
  }
}