FlutterGromoreAds class
GroMore 广告插件
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
-
requestIDFA
→ Future<
bool> -
请求应用跟踪透明度授权(仅 iOS)
no setter
-
requestPermissionIfNecessary
→ Future<
bool> -
动态请求相关权限(仅 Android)
no setter
Static Methods
-
initAd(
String appId, {String? config, int limitPersonalAds = 0}) → Future< bool> -
初始化广告
appId
应用IDconfig
配置文件名称limitPersonalAds
是否限制个性化广告,0:不限制 1:限制 -
onEventListener(
OnAdEventListener onAdEventListener) → Future< void> - 事件回调 @params onData 事件回调
-
showInterstitialAd(
String posId) → Future< bool> -
展示插屏广告
posId
广告位 id -
showSplashAd(
String posId, {String? logo, double timeout = 3.5}) → Future< bool> -
展示开屏广告
posId
广告位 idlogo
如果传值则展示底部logo,不传不展示,则全屏展示timeout
加载超时时间