FlutterDeviceInformation class
FlutterDeviceInformation通过指定一个MethodChannel
,然后调用Android平台的相关API,来获取平台设备相关信息的一个类
FlutterDeviceInformation这个类里面:定义了一个MethodChannel名称为 "com.awei.devices/flutter_device_information",用于和原生平台通信。
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Properties
-
board
→ Future<
String> -
获取的是原生平台的主板型号。 [...]
read-only
-
brand
→ Future<
String> -
获取的是原生平台的产品品牌(or系统制造商)。 [...]
read-only
-
cpuAbi
→ Future<
String> -
获取的是原生平台的设备指令集名称(CPU的类型)。 [...]
read-only
-
model
→ Future<
String> -
获取的是原生平台的手机的型号/设备名称。 [...]
read-only
-
platformVersion
→ Future<
String> -
获取的是原生平台的系统版本号。 [...]
read-only
-
sdkInt
→ Future<
String> -
获取的是原生平台的API版本(SDKINT)。 [...]
read-only