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

31 lines
806 B
TypeScript
Raw Normal View History

/**
*
* @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$;