capacitor-signal-strength
v0.0.1
Published
Plugin use to get Android device signal strength
Downloads
22
Maintainers
Readme
capacitor-signal-strength
Plugin use to get Android device signal strength
Install
npm install capacitor-signal-strength
npx cap sync
API
getdBm()
getdBm() => Promise<DBm>
Returns: Promise<DBm>
getPercentage(...)
getPercentage(options: { connection: ConnectionType; }) => Promise<Percentage>
| Param | Type |
| ------------- | -------------------------------------------------------------------------- |
| options
| { connection: ConnectionType; } |
Returns: Promise<Percentage>
getLevel()
getLevel() => Promise<Level>
Returns: Promise<Level>
checkPermissions()
checkPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
requestPermissions()
requestPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
Interfaces
DBm
| Prop | Type |
| --------- | ------------------- |
| dBm
| number |
Percentage
| Prop | Type |
| ---------------- | ------------------- |
| percentage
| string |
Level
| Prop | Type |
| ----------- | ------------------- |
| level
| number |
PermissionStatus
| Prop | Type |
| ---------- | ----------------------------------------------------------- |
| info
| PermissionState |
Type Aliases
ConnectionType
The type of network connection that a device might have.
'wifi' | 'cellular' | 'none' | 'unknown'
PermissionState
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'