openUserCenter static method

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

Opens the PlayMee User Center for the specified placement ID. The User Center allows users to view their rewards, offers, and account details. This method should be called only if isUserCenterReady returns true.

Implementation

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