remember Interstitial Ad
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.
Deprecated
The `activity` argument is no longer required as of v1.1.0-beta01
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The activity context, required for ad loading.
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.
Deprecated
The `activity` argument is no longer required as of v1.1.0-beta01
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The activity context, required for ad loading.
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.
Deprecated
The `activity` argument is no longer required as of v1.1.0-beta01
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The activity context, required for ad loading.
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.