0.0.1 • Published 3 months ago

capacitor-signal-strength v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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>
ParamType
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

PropType
dBmnumber

Percentage

PropType
percentagestring

Level

PropType
levelnumber

PermissionStatus

PropType
infoPermissionState

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

3 months ago