capacitor-gps-wydnex
v0.0.3
Published
A capacitor plugin for retrieving and monitoring GPS status.
Downloads
5
Readme
capacitor-gps-wydnex
A capacitor plugin for retrieving and monitoring GPS status.
Install
npm install capacitor-gps-wydnex
npx cap sync
API
startSatelliteUpdates()
stopSatelliteUpdates()
checkGpsStatus()
addListener(string, ...)
- Interfaces
- Type Aliases
startSatelliteUpdates()
startSatelliteUpdates() => Promise<any>
Returns: Promise<any>
stopSatelliteUpdates()
stopSatelliteUpdates() => Promise<any>
Returns: Promise<any>
checkGpsStatus()
checkGpsStatus() => Promise<{ isGpsEnabled: boolean; }>
Returns: Promise<{ isGpsEnabled: boolean; }>
addListener(string, ...)
addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle> & PluginListenerHandle
| Param | Type |
| ------------------ | ------------------------------------------------------------- |
| eventName
| string |
| listenerFunc
| ListenerCallback |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |
Type Aliases
ListenerCallback
(err: any, ...args: any[]): void