PrivacyConfig class

隐私合规配置选项

Constructors

PrivacyConfig({bool? allowPhoneState, String? imei, String? imsi, bool? allowAndroidId, String? androidId, bool? allowMac, bool? allowOaid, bool? allowIccid, bool? allowSerialNumber, bool? allowGaid, bool? allowOperatorInfo, bool? teenagerMode, bool? onlyIcpNumber})
const
PrivacyConfig.fromMap(Map<String, dynamic> map)
factory

Properties

allowAndroidId bool?
是否允许 SDK 主动获取 AndroidId
final
allowGaid bool?
是否允许 SDK 主动获取 GAID(默认关闭)
final
allowIccid bool?
是否允许 SDK 主动获取 ICCID
final
allowMac bool?
是否允许 SDK 主动获取 Mac 地址
final
allowOaid bool?
是否允许 SDK 主动获取 OAID
final
allowOperatorInfo bool?
是否允许 SDK 主动获取运营商信息
final
allowPhoneState bool?
是否允许 SDK 主动读取手机状态(IMEI/IMSI)
final
allowSerialNumber bool?
是否允许 SDK 主动获取设备序列号
final
androidId String?
当主动读取被禁用时,开发者可手动传入 AndroidId
final
hashCode int
The hash code for this object.
no setterinherited
imei String?
当主动读取被禁用时,开发者可手动传入 IMEI
final
imsi String?
当主动读取被禁用时,开发者可手动传入 IMSI
final
onlyIcpNumber bool?
是否仅返回有备案号的内容
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teenagerMode bool?
是否启用青少年模式(启用后短剧内容会受限)
final

Methods

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

Operators

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