MethodChannelFlutterPangleGlobalAds class
An implementation of FlutterPangleGlobalAdsPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterPangleGlobalAdsPlatform
- MethodChannelFlutterPangleGlobalAds
Constructors
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
应用IDappIcon
应用 icondebug
是否是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
广告位IDoverride -
showRewardVideoAd(
String posId) → Future< bool> -
展示激励视频广告
posId
广告位IDoverride -
showSplashAd(
String posId, {int timeout = 3000}) → Future< bool> -
展示开屏广告
posId
广告位IDtimeout
超时时间override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited