startTraceReport.d.ts 546 B

1234567891011121314151617
  1. import { OnFailCallback } from './invoker';
  2. import { GeolocationResult } from './getGeolocation';
  3. export interface startTraceReportParams {
  4. traceId: string;
  5. collectPeriod?: number;
  6. reportPeriod?: number;
  7. onSuccess?: (traceResult: GeolocationResult) => void;
  8. onFail?: (error: OnFailCallback) => void;
  9. }
  10. declare function startTraceReport(params: startTraceReportParams): Promise<{}>;
  11. declare namespace startTraceReport {
  12. var version: {
  13. android: string;
  14. ios: string;
  15. };
  16. }
  17. export default startTraceReport;