capacitor-plugin-compass
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i capacitor-plugin-compass

Weekly Downloads

1

Version

0.0.8

License

public

Unpacked Size

35.3 kB

Total Files

28

Last publish

Collaborators

  • hugo75