startGeolocation.d.ts 634 B

1234567891011121314151617181920
  1. import { OnFailCallback } from './invoker';
  2. import { GeolocationResult } from './getGeolocation';
  3. export interface StartGeoLocationParams {
  4. targetAccuracy?: number;
  5. iOSDistanceFilter?: number;
  6. useCache?: boolean;
  7. withReGeocode?: boolean;
  8. callBackInterval?: number;
  9. sceneId: string;
  10. onSuccess?: (geoResult: GeolocationResult) => void;
  11. onFail?: (error: OnFailCallback) => void;
  12. }
  13. declare function startGeolocation(params: StartGeoLocationParams): Promise<{}>;
  14. declare namespace startGeolocation {
  15. var version: {
  16. android: string;
  17. ios: string;
  18. };
  19. }
  20. export default startGeolocation;