SplashAdAndroidOptions class

Android 平台开屏广告可选配置

平台差异说明:

  • muted、volume:音量控制仅Android支持,iOS会自动忽略这些参数
  • useSurfaceView:Android视频渲染选项,iOS使用不同的渲染机制
  • shakeButton:摇一摇按钮功能,iOS不支持
  • enablePreload:聚合预加载开关,iOS使用不同的预加载策略

参数传递策略: 未传递的参数(null)不会调用原生SDK的setter,保留SDK默认行为

Constructors

SplashAdAndroidOptions({bool? muted, double? volume, bool? useSurfaceView, bool? bidNotify, bool? shakeButton, bool? enablePreload, String? scenarioId, Map<String, dynamic>? extras, Map<String, dynamic>? customData, SplashAdFallback? fallback})
const

Properties

bidNotify → bool?
竞价回调开关
final
customData → Map<String, dynamic>?
自定义扩展数据,将写入 CUSTOM_DATA_KEY_GROMORE_EXTRA
final
enablePreload → bool?
聚合预加载开关 (@android Android专属配置)
final
extras → Map<String, dynamic>?
额外参数 (key -> value) 将调用 setExtraObject
final
fallback → SplashAdFallback?
自定义兜底配置
final
hashCode → int
The hash code for this object.
no setterinherited
muted → bool?
是否静音 (@android 仅Android支持)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scenarioId → String?
场景 ID
final
shakeButton → bool?
摇一摇按钮开关 (@android 仅Android支持)
final
useSurfaceView → bool?
是否使用 SurfaceView (@android 仅Android支持)
final
volume → double?
播放音量 (0 ~ 1) (@android 仅Android支持)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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