package com.codename1.ads.spi
Service provider interface (SPI) for the Codename One advertising API. Ad
network libraries implement
AdProvider and register
it with AdManager (typically from a static install()
method). Application code never references these types; it uses the facade
and format classes in com.codename1.ads.Types
interface AdConsentController | A provider’s consent and privacy controller, backing the public AdConsent facade. |
interface AdProvider | The service provider interface implemented by an ad network library (such as the Google AdMob library). |
interface AdSessionCallback | The callback a AdProvider uses to report ad lifecycle events back to the Codename One ads layer. |
interface BannerAdSession | A provider’s handle for a banner ad. |
interface FullScreenAdSession | A provider’s handle for a single full screen ad (interstitial, rewarded, rewarded interstitial or app open). |
interface NativeAdProvider | Optional capability interface implemented by an AdProvider that supports native ads. |