MethodChannelZarliFlutter class
An implementation of ZarliFlutterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ZarliFlutterPlatform
- MethodChannelZarliFlutter
Constructors
Properties
-
adEvents
→ Stream<
ZarliAdEvent> -
Stream of ad events (loaded, failed, showed, dismissed, reward earned).
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
disposeAd(
String adObjectId) → Future< void> -
Disposes an ad object.
override
-
initialize(
{String? apiKey}) → Future< void> -
Initializes the SDK.
override
-
loadInterstitialAd(
String adUnitId, String adObjectId) → Future< void> -
Loads an interstitial ad.
override
-
loadRewardedAd(
String adUnitId, String adObjectId) → Future< void> -
Loads a rewarded ad.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showInterstitialAd(
String adObjectId) → Future< void> -
Shows a loaded interstitial ad.
override
-
showRewardedAd(
String adObjectId) → Future< void> -
Shows a loaded rewarded ad.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited