FlutterPluginAd class

Constructors

FlutterPluginAd()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

platformVersion → Future<String>
no setter

Static Methods

checkAndReqPermission() → Future<bool>
请求权限 仅 Android
initAd(String appKey, {bool isDebug = false}) → Future<bool>
初始化广告 appKey 广告配置 appKey isDebug 是否为测试模式
onEventListener(void onData(AdEvent event)) → Future<void>
事件回调 @params onData 事件回调
showInterstitialAd(String adId) → Future<bool>
展示插屏广告 adId 广告配置 adId
showRewardVideoAd(String adId, String userId, String custom_data) → Future<bool>
展示激励视频广告 adId 广告配置 adId userId
showSplashAd(String adId) → Future<bool>
展示开屏广告 adId 广告配置 adId