OcmFlutterPluginPlatform class abstract
The platform interface that implementations of ocm_ads extend.
App code should use the classes in package:ocm_ads/ocm_ads.dart instead.
- Inheritance
-
- Object
- PlatformInterface
- OcmFlutterPluginPlatform
- Implementers
Constructors
- OcmFlutterPluginPlatform()
- Constructs a platform implementation.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyRewardedServerSideVerification(
String adId, {required String userId, String? customData}) → Future< void> -
disposeInterstitial(
String adId) → Future< void> -
disposeRewarded(
String adId) → Future< void> -
initialize(
{required String publisherId, String? gdprConsentString, bool? isGdprApplicable, String? prebidServerUrl}) → Future< void> -
initializeWithConfig(
OcmConfig config, {String? prebidAccountId, String? prebidServerUrl, String? gdprConsentString, bool? isGdprApplicable}) → Future< void> -
isInterstitialReady(
String adId) → Future< bool> -
loadInterstitial(
{required String prebidConfigId, required String gamAdUnitId, Duration? fetchTimeout, Duration? autoRefreshInterval, OcmInterstitialListener? listener}) → Future< String> -
loadNativeAd(
{required String prebidConfigId, String? gamAdUnitId, String? gamNativeFormatId, OcmNativeLoadMode mode = OcmNativeLoadMode.gam, OcmNativeListener? listener}) → Future< OcmNativeAd> -
loadRewarded(
{required String adUnitId, OcmRewardedListener? listener}) → Future< String> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBannerCallbacks(
String bannerId, {VoidCallback? onLoaded, OcmAdFailureCallback? onFailed, VoidCallback? onClicked, VoidCallback? onImpression}) → void -
setNativeViewCallbacks(
String nativeViewId, {VoidCallback? onLoaded, OcmAdFailureCallback? onFailed, ValueChanged< double> ? onHeightChanged}) → void -
setPbsEventLogging(
bool enabled) → Future< void> -
setPrebidDebug(
bool enabled) → Future< void> -
showInterstitial(
String adId) → Future< void> -
showRewarded(
String adId) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ OcmFlutterPluginPlatform
-
The active implementation, MethodChannelOcmFlutterPlugin by default.
getter/setter pair