isInterstitialReady static method

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

================= INTERSTITIAL ================= Checks if an interstitial ad is ready to be shown. Returns true if the interstitial ad is ready, false otherwise.

Implementation

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