FlutterPluginAd class
Constructors
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广告配置 appKeyisDebug是否为测试模式 -
onEventListener(
void onData(AdEvent event)) → Future< void> - 事件回调 @params onData 事件回调
-
showFullscreenVideoAd(
String adId) → Future< bool> -
展示全屏视频广告
adId广告配置 adId -
showInterstitialAd(
String adId) → Future< bool> -
展示插屏广告
adId广告配置 adId -
showKsVideoFragment(
String adId) → Future< bool> -
展示短视频内容首页
adId广告配置 adId -
showRewardVideoAd(
String adId, String userId) → Future< bool> -
展示激励视频广告
adId广告配置 adId -
showRewardVideoAdFromRootViewController(
String adId) → Future< bool> -
初始化广告
appKey广告配置 appKeyisDebug是否为测试模式 -
showSplashAd(
String adId) → Future< bool> -
展示开屏广告
adId广告配置 adId -
showVideoPage(
String adId, int rewardCount, int rewardDownTime) → Future< bool> -
展示短视频内容太广告
adId广告配置 adIdrewardCount奖励次数rewardDownTime单次奖励需要观看的时长 -
startLoadRewardVideo(
String adId, String userId) → Future< bool> -
预加载激励视频广告
adId广告配置 adId