isUserCenterReady static method

Future<bool> isUserCenterReady({
  1. required String placementId,
})

================= PLAYMEE ================= Checks if the PlayMee User Center is ready to be opened. Returns true if the User Center is ready, false otherwise.

Implementation

static Future<bool> isUserCenterReady({required String placementId}) async {
  try {
    final bool ready = await _channel.invokeMethod('isUserCenterReady', {
      'placementId': placementId,
    });
    return ready;
  } catch (e) {
    debugPrint('Error checking if User Center is ready: $e');
    return false;
  }
}