capacitor-plugin-compass
v0.0.8
Published
obtener la orientación del dispositivo
Downloads
3
Readme
capacitor-plugin-compass
obtener la orientación del dispositivo
Install
npm install capacitor-plugin-compass
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
requestCompassPermission()
requestCompassPermission() => Promise<{ value: boolean; }>
Returns: Promise<{ value: boolean; }>
check()
check() => Promise<{ value: boolean; }>
Returns: Promise<{ value: boolean; }>
start()
start() => Promise<void>
stop()
stop() => void
getOrientation(...)
getOrientation(event: any) => any
| Param | Type |
| ----------- | ---------------- |
| event
| any |
Returns: any
ios añadir en info.plist
NSLocationWhenInUseUsageDescription La aplicación necesita acceder a tu ubicación para utilizar la brújula.