zhizhi/node_modules/dingtalk-jsapi/api/biz/util/chooseImage.d.ts

31 lines
806 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.

/**
* 图片选择 请求参数定义
* @apiName biz.util.chooseImage
*/
export interface IBizUtilChooseImageParams {
/** 最大可选照片数默认1张 */
count?: number;
/** 相册选取或者拍照,默认 ['camera','album'] */
sourceType?: string[];
}
/**
* 图片选择 返回结果定义
* @apiName biz.util.chooseImage
*/
export interface IBizUtilChooseImageResult {
filePaths: string[];
files: Array<{
path: string;
size: number;
fileType: string;
}>;
}
/**
* 图片选择
* @apiName biz.util.chooseImage
* @supportVersion ios: 5.1.1 android: 5.1.1
* @author Android狐斐 iOS须莫
*/
export declare function chooseImage$(params: IBizUtilChooseImageParams): Promise<IBizUtilChooseImageResult>;
export default chooseImage$;