codebakery-plugin-cellinfo
v0.2.1
Published
CodeBakery Cell Info Plugin
Downloads
21
Maintainers
Readme
codebakery-plugin-cellinfo
This plugin defines window.CellInfo
object, which adds methods for getting
primary and neighboring cell information as well as network type.
CellInfoData object
{
'cid': Number, // cell ID in GSM
'lac': Number, // LAC in GSM
'psc': Number, // primary scrambling code for UMTS, -1 for GSM
'networkType': String, // network type string, e.g. 'GSM' or 'UMTS'
'generalNetworkType': String, // general network type: '2G', '3G, '4G', 'CDMA' or 'Unknown'
'rssi': Number // received signal strength in dBm
}
Methods
window.CellInfo.getNeighboringCellInfo()
- returns list of CellInfoData objectswindow.CellInfo.getPrimaryCellInfo()
- returns CellInfoData object
Properties
window.CellInfo.isAvailable
- true if current platform is supported, false otherwise
Supported Platforms
- Android
Android Installation
API level 7+ supported.
Requires ACCESS_COARSE_LOCATION
permission.