GromoreAdRequest class

广告请求参数

Constructors

GromoreAdRequest({required String placementId, Map<String, dynamic>? params, Map<String, dynamic>? extra, Map<String, dynamic>? androidExtra, Map<String, dynamic>? iosExtra, GromoreAdSizeUnit sizeUnit = GromoreAdSizeUnit.nativePixels})
构建广告请求。一般使用各广告类型的 Config 即可。
const

Properties

androidExtra → Map<String, dynamic>?
只给 Android 使用的广告参数,不覆盖 params 或 extra 的同名值。
final
extra → Map<String, dynamic>?
两端共用的广告参数,只支持插件已定义的键,不会整体发给服务器。 激励回调的业务数据用 {'customData': {'orderId': '123'}} 传入。 customData 支持 Map 和 String;Map 在发送到原生前转为 JSON 字符串。 与 params 重名时,此处的值优先。
final
hashCode → int
The hash code for this object.
no setterinherited
iosExtra → Map<String, dynamic>?
只给 iOS 使用的广告参数,不覆盖 params 或 extra 的同名值。
final
params → Map<String, dynamic>?
广告参数,由各广告类型的 Config 自动填写。
final
placementId → String
代码位/PlacementId
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeUnit → GromoreAdSizeUnit
width/height 的单位。底层请求默认保留原生单位以兼容旧调用; 各广告 Config 默认使用 logicalPixels,无需手动乘 devicePixelRatio。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
转为通道传输 Map
toString() → String
A string representation of this object.
inherited

Operators

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