mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
10 lines
444 B
TypeScript
10 lines
444 B
TypeScript
declare const FaceclawLocation: any
|
|
export const hasLocationPermission = (): boolean => FaceclawLocation.shared().hasPermission()
|
|
export function ensureLocationPermission(): Promise<boolean> {
|
|
return new Promise(resolve => FaceclawLocation.shared().requestPermission(resolve))
|
|
}
|
|
|
|
export function ensureFineLocationPermission(): Promise<boolean> {
|
|
return new Promise(resolve => FaceclawLocation.shared().requestPrecisePermission(resolve))
|
|
}
|