forked from Blendman974/faceclaw
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))
|
|
}
|