GromoreFlutterPlatform class abstract

平台接口定义(Android/iOS 具体实现)

Inheritance
  • Object
  • PlatformInterface
  • GromoreFlutterPlatform
Implementers

Constructors

GromoreFlutterPlatform()

Properties

adEvents → Stream
广告事件流
no setter
enabledAdTypes → Set<GromoreAdType>
启用的广告类型集合
no setter
hashCode → int
The hash code for this object.
no setterinherited
logEvents → Stream
日志事件流
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

disposeAd(String adId) → Future<void>
销毁广告
init(GromoreConfig config) → Future<PlatformInitResult>
初始化 SDK
invokeNative(String method, Map<String, dynamic>? args) → Future
调用原生自定义方法
loadAd(GromoreAdType type, GromoreAdRequest request) → Future<String>
加载广告
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLogEnabled(bool enabled) → Future<void>
设置日志开关
setLogLevel(LogLevel level) → Future<void>
设置日志级别
showAd(String adId) → Future<void>
展示广告
toString() → String
A string representation of this object.
inherited
updateEnabledAdTypes(Set<GromoreAdType> enabledTypes) → void
更新启用的广告类型集合

Operators

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

Static Properties

instance ↔ GromoreFlutterPlatform
获取当前平台实现实例
getter/setter pair