GromoreSplashConfig class

开屏广告配置

Inheritance

Constructors

GromoreSplashConfig({required String adUnitId, double? width, double? height, bool? muted, bool? preload, double? volume, bool? splashShakeButton, bool? bidNotify, int? timeout, bool? useSurfaceView = true})

Properties

adUnitId String
广告id
final
bidNotify bool?
bidding类型广告,竞价成功或者失败后是否通知对应的adn,默认为false
final
hashCode int
The hash code for this object.
no setterinherited
height double?
广告高度(自定义渲染可用) 将不再维护
final
id String?
唯一标识
getter/setter pairinherited
如果传入了logo则会在底部显示logo,logo放在android/app/src/main/res/mipmap下,值不需要文件后缀(非自定义渲染可用)
final
muted bool?
静音,默认为true
final
preload bool?
预加载,默认为true
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashShakeButton bool?
开屏摇一摇开关,默认为true
final
timeout int?
超时时间
final
useSurfaceView bool?
是否使用SurfaceView,默认为true
final
volume double?
声音配置,与muted配合使用
final
width double?
广告宽度(自定义渲染可用) 将不再维护
final

Methods

generateId() → dynamic
生成唯一id
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
转换为Map
override
toString() String
A string representation of this object.
inherited

Operators

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