Package | org.zengrong.ane.tool |
Class | public class SystemInfoCont |
Inheritance | SystemInfoCont ToolBase flash.events.EventDispatcher |
Method | Defined By | ||
---|---|---|---|
SystemInfoCont($context:ExtensionContext) | SystemInfoCont | ||
dispose():void | ToolBase | ||
getBuildInfo():Object
获取Build信息
| SystemInfoCont | ||
getConnectivityInfo():Object
获取当前连接的网络信息
AIR能够获取网络的状态,但不能判断网络的类型(是WIFI还是Mobile)
需要权限:android.permission.ACCESS_NETWORK_STATE
| SystemInfoCont | ||
getDisplayMetricsInfo():Object
获取显示尺寸,某些情况下可能需要自行计算
其实AIR已经提供了这些功能,建议使用AIR的功能。
| SystemInfoCont | ||
getHardwareInfo():Object
获取硬件信息
| SystemInfoCont | ||
getTelephony():Object
获取电话信息
需要权限:android.permission.READ_PHONE_STATE
| SystemInfoCont |
SystemInfoCont | () | Constructor |
public function SystemInfoCont($context:ExtensionContext)
$context:ExtensionContext |
getBuildInfo | () | method |
public function getBuildInfo():Object
获取Build信息
ReturnsObject |
getConnectivityInfo | () | method |
public function getConnectivityInfo():Object
获取当前连接的网络信息 AIR能够获取网络的状态,但不能判断网络的类型(是WIFI还是Mobile) 需要权限:android.permission.ACCESS_NETWORK_STATE
ReturnsObject |
See also
getDisplayMetricsInfo | () | method |
public function getDisplayMetricsInfo():Object
获取显示尺寸,某些情况下可能需要自行计算 其实AIR已经提供了这些功能,建议使用AIR的功能。
ReturnsObject |
getHardwareInfo | () | method |
public function getHardwareInfo():Object
获取硬件信息
ReturnsObject |
getTelephony | () | method |
public function getTelephony():Object
获取电话信息 需要权限:android.permission.READ_PHONE_STATE
ReturnsObject |
See also