MethodChannelFlutterPangleGlobalAds class

An implementation of FlutterPangleGlobalAdsPlatform that uses method channels.

Inheritance

Properties

eventChannel EventChannel
事件通道
final
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

getPlatformVersion() Future<String?>
override
initAd(String appId, {String? appIcon, bool debug = kDebugMode}) Future<bool>
初始化广告 appId 应用ID appIcon 应用 icon debug 是否是debug模式
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEventListener(OnAdEventListener onAdEventListener) Future<void>
事件回调 onAdEventListener 事件回调
override
requestIDFA() Future<bool>
请求 IDFA 权限 (仅 iOS)
override
showInterAd(String posId) Future<bool>
展示插屏广告 posId 广告位ID
override
showRewardVideoAd(String posId) Future<bool>
展示激励视频广告 posId 广告位ID
override
showSplashAd(String posId, {int timeout = 3000}) Future<bool>
展示开屏广告 posId 广告位ID timeout 超时时间
override
toString() String
A string representation of this object.
inherited

Operators

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