DeviceInfoUtils class
设备信息读取工具(单例)。
Constructors
- DeviceInfoUtils()
-
factory
Properties
- androidSdkInt → int
-
Android SDK 版本号(非 Android 返回默认 16)。
no setter
- deviceInfo → String
-
设备完整信息(插件原始 toString)。
no setter
- deviceType → String
-
设备型号 / 制造商(Android 为 manufacturer,iOS 为 utsname.machine)。
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- osVersion → String
-
操作系统版本字符串。
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialNumber → String
-
设备序列号 / 唯一标识(各平台语义不同,见 init)。
no setter
Methods
-
init(
) → Future< bool> -
初始化:按当前平台(Android / iOS / Windows / macOS)读取并缓存设备信息。
任何平台异常都吞掉并返回
false,便于调用方在无插件环境降级。 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
winUniqueIdentifier(
) → Future< String> - A unique device identifier.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildWinUniqueId(
Iterable< String> ids) → String - Builds the md5 device identifier from a set of stable hardware ids.