zhizhi/node_modules/dingtalk-jsapi/api/device/geolocation/status.d.ts

25 lines
951 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 批量查询持续定位JS-API状态 请求参数定义
* @apiName device.geolocation.status
*/
export interface IDeviceGeolocationStatusParams {
/** 需要查询定位场景id列表 */
sceneIds: string[];
}
/**
* 批量查询持续定位JS-API状态 返回结果定义
* 返回的值是一个数组每一个元素为一个map标志了一个定位场景的状态。map的key为场景idvalue为其对应的状态
* @apiName device.geolocation.status
*/
export declare type IDeviceGeolocationStatusResult = Array<{
/** 场景id以及对应的开启状态1 表示正在持续定位, 0 表示未开始持续 */
[sceneId: string]: 0 | 1;
}>;
/**
* 批量查询持续定位JS-API状态
* @apiName device.geolocation.status
* @supportVersion ios: 3.4.8 android: 3.4.8
*/
export declare function status$(params: IDeviceGeolocationStatusParams): Promise<IDeviceGeolocationStatusResult>;
export default status$;