unified_ads_platform_interface 1.1.0
unified_ads_platform_interface: ^1.1.0 copied to clipboard
Common platform interface for unified_ads: the AdNetworkAdapter contract, shared ad models, and the adapter registry.
1.1.0 #
- New
AdPacingmodel andAdConfig.pacing(cooldown, show every N actions, initial delay per full-screen format). - New
AdErrorCode.adsBlocked, returned while ads are switched off withUnifiedAds.setAdFree. Migration note: an exhaustiveswitchoverAdErrorCodeneeds a new case. - BREAKING (iOS, ecosystem): released together with the other unified_ads packages, which are now Swift Package Manager only on iOS (CocoaPods support removed). This package has no native code. See the migration guide.
- New
AdConfig.showTimeout(default 15 s): how long a full-screenshow()may wait for the SDK to report "shown" or "failed to show". Additive, non-breaking. - README: package-specific guide for adapter authors, including the full
AdNetworkAdaptercontract.
1.0.0 #
Initial release.
AdNetworkAdaptercontract andAdapterRegistry. Adapters register themselves from theirdartPluginClass.BridgedAdNetworkAdapter: a base class for Pigeon/method-channel adapters. It never throws, mapsPlatformException→AdError, tracks loaded ads, and translates native events.BridgedAdNetworkAdapter.logMetaBidding: a protected helper the mediation adapters use to report the opt-in Meta bidding adapter.- Shared models:
AdNetwork,AdFormat,AdConfig,NetworkConfig,PlatformValue,AdError/AdErrorCode,AdResult, the sealedAdEventhierarchy,BannerSize,BannerRequest,RewardItem,FrequencyCap,PreloadPolicy,TestModeSupport. ConsentState/ConsentProvider,TrackingStatus/TrackingAuthorization.AdsLoggerwith levels and pluggable sinks, silent by default.UnsupportedAdNetworkAdapterfor documented stubs.