DeviceIdentifier class

Constructors

DeviceIdentifier.new({String? androidId, String? advertisingId, String? installUuid, String? deviceFingerprint, String? buildSerial, String? combinedId, bool isLimitAdTrackingEnabled = false, String? iosDeviceID, String? idfv, String? idfa, String? keychainUUID, String? launchUUID, Map<String, String>? deviceInfo})
const
DeviceIdentifier.fromJson(Map<String, dynamic> json)
factory

Properties

advertisingId String?
广告标识符(如 Google Advertising ID)
final
androidId String?
Android 设备的 ANDROID_ID,通常为设备唯一标识
final
buildSerial String?
设备的 Build Serial 序列号
final
combinedId String?
多种标识符组合生成的唯一 ID
final
deviceFingerprint String?
设备指纹信息(如硬件、系统等组合生成的唯一标识)
final
deviceInfo Map<String, String>?
设备基本信息
final
hashCode int
The hash code for this object.
no setterinherited
idfa String?
IDFA: 广告标识符,iOS 14.5+ 需要用户授权,卸载重装不变
final
idfv String?
IDFV: 同一开发者应用共享,卸载重装时可能变化
final
installUuid String?
应用安装时生成的唯一 UUID
final
iosDeviceID String?
iOS设备ID: 类似Android ID的概念,最推荐用于统计
final
isAndroid bool
检查是否为Android平台
no setter
isIOS bool
检查是否为iOS平台
no setter
isLimitAdTrackingEnabled bool
是否开启了"限制广告跟踪"
final
keychainUUID String?
Keychain UUID: 存储在钥匙串中,最稳定的标识符
final
launchUUID String?
应用启动UUID: 每次应用启动生成,测试用
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBestIdentifier() String?
获取最佳的设备标识符
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.
override

Operators

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