0.0.3 • Published 10 months ago

capacitor-gps-enable-ios v0.0.3

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

capacitor-gps-enable-ios

ios location permission

Install

npm install capacitor-gps-enable-ios
npx cap sync

API

checkLocationStatus()

checkLocationStatus() => Promise<LocationStatus>

Returns: Promise<LocationStatus>


requestPermissions()

requestPermissions() => Promise<void>

dismissAlert()

dismissAlert() => Promise<void>

addListener('cancelAction' | 'locationStatusChange' | 'mockLocationDetected', ...)

addListener(eventName: 'cancelAction' | 'locationStatusChange' | 'mockLocationDetected', listenerFunc: (info: any) => any) => Promise<PluginListenerHandle>
ParamType
eventName'cancelAction' | 'locationStatusChange' | 'mockLocationDetected'
listenerFunc(info: any) => any

Returns: Promise<PluginListenerHandle>


Interfaces

LocationStatus

PropType
locationEnabledboolean
latitudenumber
longitudenumber
locationChangedboolean
messagestring

PluginListenerHandle

PropType
remove() => Promise<void>
0.0.3

10 months ago

0.0.2

11 months ago