status.d.ts 951 B

123456789101112131415161718192021222324
  1. /**
  2. * 批量查询持续定位JS-API状态 请求参数定义
  3. * @apiName device.geolocation.status
  4. */
  5. export interface IDeviceGeolocationStatusParams {
  6. /** 需要查询定位场景id列表 */
  7. sceneIds: string[];
  8. }
  9. /**
  10. * 批量查询持续定位JS-API状态 返回结果定义
  11. * 返回的值是一个数组,每一个元素为一个map,标志了一个定位场景的状态。map的key为场景id,value为其对应的状态
  12. * @apiName device.geolocation.status
  13. */
  14. export declare type IDeviceGeolocationStatusResult = Array<{
  15. /** 场景id以及对应的开启状态,1 表示正在持续定位, 0 表示未开始持续 */
  16. [sceneId: string]: 0 | 1;
  17. }>;
  18. /**
  19. * 批量查询持续定位JS-API状态
  20. * @apiName device.geolocation.status
  21. * @supportVersion ios: 3.4.8 android: 3.4.8
  22. */
  23. export declare function status$(params: IDeviceGeolocationStatusParams): Promise<IDeviceGeolocationStatusResult>;
  24. export default status$;