TelephonyInfo class
Properties
- callState ↔ int
-
当前电话状态
返回值参考:CallState
read / write
- dataNetworkType ↔ int
-
当前使用中的网络数据类型
安卓需要权限:android.permission.READ_PHONE_STATE
NetworkType
read / write
- deviceSoftwareVersion ↔ String
-
设备的软件版本号
安卓需要权限:android.permission.READ_PHONE_STATE
read / write
- imei ↔ String
-
IMEI(International Mobile Equipment Identity)
安卓需要权限:android.permission.READ_PHONE_STATE
read / write
- isDataEnabled ↔ bool
-
是否打开网络数据
安卓以下权限之一:
android.permission.ACCESS_NETWORK_STATE
android.permission.MODIFY_PHONE_STATE
read / write
- isNetworkRoaming ↔ bool
-
是否漫游
read / write
- isSmsCapable ↔ bool
-
是否支持短信
read / write
- isVoiceCapable ↔ bool
-
是否支持语音通信
read / write
- line1Number ↔ String
-
手机号码,获取不到将返回null
安卓需要以下权限之一:
android.permission.READ_PHONE_STATE
android.permission.READ_SMS
android.permission.READ_PHONE_NUMBERS
read / write
- meid ↔ String
-
MEID (Mobile Equipment Identifier)
安卓需要权限:android.permission.READ_PHONE_STATE
read / write
- nai ↔ String
-
Network Access Identifier (NAI)
安卓需要权限:android.permission.READ_PHONE_STATE
read / write
- networkCountryIso ↔ String
-
当前网络所在国家代码
read / write
- networkOperator ↔ String
-
read / write
- networkOperatorName ↔ String
-
read / write
- networkSpecifier ↔ String
-
read / write
- networkType ↔ int
-
网络类型
NetworkType
read / write
- phoneCount ↔ int
-
可用的SIM卡数量
read / write
- phoneType ↔ int
-
PhoneType
read / write
- serviceState ↔ dynamic
-
read / write
- simCarrierId ↔ int
-
read / write
- simCarrierIdName ↔ String
-
运营商名称
read / write
- simCountryIso ↔ String
-
read / write
- simOperator ↔ String
-
read / write
- simOperatorName ↔ String
-
运营商名称
read / write
- simSerialNumber ↔ String
-
read / write
- 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
-
rawString(
) → String -
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
inherited
Static Methods
-
fromMap(
Map< String, dynamic> map) → TelephonyInfo