This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo-location/build/ExpoLocation.web.d.ts
2021-04-02 02:24:13 +03:00

27 lines
1.2 KiB
TypeScript

import { PermissionResponse } from 'unimodules-permissions-interface';
import { LocationLastKnownOptions, LocationObject, LocationOptions } from './Location.types';
/**
* Gets the permission details. The implementation is not very good as it actually requests
* for the current location, but there is no better way on web so far :(
*/
declare function getPermissionsAsync(): Promise<PermissionResponse>;
declare const _default: {
readonly name: string;
getProviderStatusAsync(): Promise<{
locationServicesEnabled: boolean;
}>;
getLastKnownPositionAsync(options?: LocationLastKnownOptions): Promise<LocationObject | null>;
getCurrentPositionAsync(options: LocationOptions): Promise<LocationObject>;
removeWatchAsync(watchId: any): Promise<void>;
watchDeviceHeading(headingId: any): Promise<void>;
hasServicesEnabledAsync(): Promise<boolean>;
geocodeAsync(): Promise<any[]>;
reverseGeocodeAsync(): Promise<any[]>;
watchPositionImplAsync(watchId: string, options: LocationOptions): Promise<string>;
getPermissionsAsync: typeof getPermissionsAsync;
requestPermissionsAsync(): Promise<PermissionResponse>;
startObserving(): void;
stopObserving(): void;
};
export default _default;