ngx-device-permission
Version:
Angular library for handling device permissions
12 lines (11 loc) • 457 B
TypeScript
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class GeolocationService {
/**
* Requests the current location of the user.
* Emits coordinates if successful, or an error if denied or unavailable.
*/
requestLocation(): Observable<GeolocationPosition>;
static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
}