MethodChannelOcmFlutterPlugin class

An OcmFlutterPluginPlatform that talks to the native SDKs over a method channel.

Inheritance

Constructors

MethodChannelOcmFlutterPlugin()
Creates the implementation and registers the native callback handler.

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The channel used to call the native SDKs.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyRewardedServerSideVerification(String adId, {required String userId, String? customData}) → Future<void>
override
disposeInterstitial(String adId) → Future<void>
override
disposeRewarded(String adId) → Future<void>
override
initialize({required String publisherId, String? gdprConsentString, bool? isGdprApplicable, String? prebidServerUrl}) → Future<void>
override
initializeWithConfig(OcmConfig config, {String? prebidAccountId, String? prebidServerUrl, String? gdprConsentString, bool? isGdprApplicable}) → Future<void>
override
isInterstitialReady(String adId) → Future<bool>
override
loadInterstitial({required String prebidConfigId, required String gamAdUnitId, Duration? fetchTimeout, Duration? autoRefreshInterval, OcmInterstitialListener? listener}) → Future<String>
override
loadNativeAd({required String prebidConfigId, String? gamAdUnitId, String? gamNativeFormatId, OcmNativeLoadMode mode = OcmNativeLoadMode.gam, OcmNativeListener? listener}) → Future<OcmNativeAd>
override
loadRewarded({required String adUnitId, OcmRewardedListener? listener}) → Future<String>
override
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
override
setNativeViewCallbacks(String nativeViewId, {VoidCallback? onLoaded, OcmAdFailureCallback? onFailed, ValueChanged<double>? onHeightChanged}) → void
override
setPbsEventLogging(bool enabled) → Future<void>
override
setPrebidDebug(bool enabled) → Future<void>
override
showInterstitial(String adId) → Future<void>
override
showRewarded(String adId) → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited