0.0.1 • Published 2 years ago
capacitor-signal-strength v0.0.1
capacitor-signal-strength
Plugin use to get Android device signal strength
Install
npm install capacitor-signal-strength
npx cap syncAPI
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'
0.0.1
2 years ago