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
hashCode int
The hash code for this object.
read-onlyinherited
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
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
rawString() String
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic> map) TelephonyInfo