Requests and loads a fullscreen AdMob ad and notifies load completion via onLoaded lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as showInterstitialAd is called from the same AdLoader instance, the ad will display.
Requests and loads a fullscreen AdMob ad and notifies load completion via onLoaded lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as showRewardedAd is called from the same AdLoader instance, the ad will display.
Requests and loads a fullscreen AdMob ad and notifies load completion via onLoaded lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as showRewardedInterstitialAd is called from the same AdLoader instance, the ad will display.
Submits an AdRequest and returns the resulting AdRequest Loaded ads are stored privately in each instantiation of AdLoader. As long as showInterstitialAd is called from the same AdLoader instance, the ad will display.
Shows a fullscreen AdMob ad and notifies when the user closes the ad via onDismissed lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as loadInterstitialAd is called from the same AdLoader instance, the ad will display.
Shows a rewarded and fullscreen AdMob ad. It notifies when the user closes the ad via onDismissed lambda and when the user earned a reward within the ad using lambda onRewardEarned Loaded ads are stored privately in each instantiation of AdLoader. As long as loadRewardedAd is called from the same AdLoader instance, the ad will display.
Shows a rewarded and fullscreen AdMob ad. It notifies when the user closes the ad via onDismissed lambda and when the user earned a reward within the ad using lambda onRewardEarned Loaded ads are stored privately in each instantiation of AdLoader. As long as loadRewardedInterstitialAd is called from the same AdLoader instance, the ad will display.
Requests and loads a fullscreen AdMob ad and notifies load completion via onLoaded lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as showInterstitialAd is called from the same AdLoader instance, the ad will display.
rjamison@lexilabs.app
Android Activity or iOS null value stored in an Any variable
Lambda expression that executes when the AdRequest has fully loaded
Requests and loads a fullscreen AdMob ad and notifies load completion via onLoaded lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as showRewardedAd is called from the same AdLoader instance, the ad will display.
rjamison@lexilabs.app
Android Activity or iOS null value stored in an Any variable
Lambda expression that executes when the AdRequest has fully loaded
Requests and loads a fullscreen AdMob ad and notifies load completion via onLoaded lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as showRewardedInterstitialAd is called from the same AdLoader instance, the ad will display.
rjamison@lexilabs.app
Android Activity or iOS null value stored in an Any variable
Lambda expression that executes when the AdRequest has fully loaded
Shows a fullscreen AdMob ad and notifies when the user closes the ad via onDismissed lambda. Loaded ads are stored privately in each instantiation of AdLoader. As long as loadInterstitialAd is called from the same AdLoader instance, the ad will display.
rjamison@lexilabs.app
Android Activity or iOS null value stored in an Any variable
Lambda expression that executes when the user closes the ad
Shows a rewarded and fullscreen AdMob ad. It notifies when the user closes the ad via onDismissed lambda and when the user earned a reward within the ad using lambda onRewardEarned Loaded ads are stored privately in each instantiation of AdLoader. As long as loadRewardedAd is called from the same AdLoader instance, the ad will display.
rjamison@lexilabs.app
Android Activity or iOS null value stored in an Any variable
Lambda expression that executes when the user closes the ad
Lambda expression that executes when the user earns a reward from the ad
Shows a rewarded and fullscreen AdMob ad. It notifies when the user closes the ad via onDismissed lambda and when the user earned a reward within the ad using lambda onRewardEarned Loaded ads are stored privately in each instantiation of AdLoader. As long as loadRewardedInterstitialAd is called from the same AdLoader instance, the ad will display.
rjamison@lexilabs.app
Android Activity or iOS null value stored in an Any variable
Lambda expression that executes when the user closes the ad
Lambda expression that executes when the user earns a reward from the ad
Based on the AdMob implementation of AdSize, this module enables Android-like syntax to be used multiplatform.
The width of the ad in whatever unit of measurement Google came up with
The height of the ad in whatever unit of measurement Google came up with
Provides a way of selecting an AdMob AdUnitId by platform during runtime. This function works for any ad type.
An object used to hold functions related to AdMob AdUnitIds
I have no idea what this does, but its here and it works on Android and iOS
Android Context or null for iOS, passed in an Any variable
The domain name of which errors occur on
The main module for instantiating Android and iOS implementations of AdMob
The domain name of which errors occur on
I have no idea what this does, but its here and it works on Android and iOS
The main function for instantiating Android and iOS implementations of AdMob. It is equivalent to Android's MobileAds.Initialize(context)
.
This opens the Debug Menu, which I have never personally done myself.
Mutes or unmutes ads
The main function for instantiating Android and iOS implementations of AdMob. It is equivalent to Android's MobileAds.Initialize(context)
.
Android Context or null for iOS, passed in an Any variable
when run outside the MainThread
This opens the Debug Menu, which I have never personally done myself.
Android Context or null for iOS, passed in an Any variable
Mutes or unmutes ads
a Boolean value that should evaluate true
when muted and false
when unmuted
For Android, complete the steps in AdMob's instructions:
For iOS, complete the steps in AdMob's instructions:
NOTE: For Xcode 13+, you can update your Custom iOS Target Properties.
Once complete, you'll need to call BasicAds.initialize in your commonMain
before calling for ads.
NOTE: You do not need to initialize within each platform.
This API is not considered 'production' until reaching version 1.0.0 or higher
Loads and displays an Interstitial Ad using a Composable.
Your AdMob AdUnitId String
Lambda that executes when the user closes the ad
Returns a representation of an immutable list of all enum entries, in the order they're declared.
This method may be used to iterate over the enum entries.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
if this enum type has no constant with the specified name
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
The maximum content rating of the ads you wish to display
The privacy level of the ads
Should ads be appropriate for children
Should ads be limited to content for children under the age of consent
Sets the initial configuration of your AdMob instance for Android and iOS
The maximum content rating of the ads you wish to display
The privacy level of the ads
Should ads be appropriate for children
Should ads be limited to content for children under the age of consent
The maximum content rating of the ads you wish to display
The privacy level of the ads
Should ads be appropriate for children
Should ads be limited to content for children under the age of consent
Loads and displays a Rewarded Ad using a Composable.
Your AdMob AdUnitId String
Lambda that executes when the user closes the ad
Lambda that executes when the user has earned an ad-related reward
Loads and displays a Rewarded Interstitial Ad using a Composable.
Your AdMob AdUnitId String
Lambda that executes when the user closes the ad
Lambda that executes when the user has earned an ad-related reward
For Android, complete the steps in AdMob's instructions:
This API is not considered 'production' until reaching version 1.0.0 or higher
Sets the initial configuration of your AdMob instance for Android and iOS
Loads and displays an Interstitial Ad using a Composable.
Loads and displays a Rewarded Ad using a Composable.
Loads and displays a Rewarded Interstitial Ad using a Composable.