UNPKG

ngx-device-permission

Version:
12 lines (11 loc) 457 B
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>; }