chooseImage.d.ts 806 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * 图片选择 请求参数定义
  3. * @apiName biz.util.chooseImage
  4. */
  5. export interface IBizUtilChooseImageParams {
  6. /** 最大可选照片数,默认1张 */
  7. count?: number;
  8. /** 相册选取或者拍照,默认 ['camera','album'] */
  9. sourceType?: string[];
  10. }
  11. /**
  12. * 图片选择 返回结果定义
  13. * @apiName biz.util.chooseImage
  14. */
  15. export interface IBizUtilChooseImageResult {
  16. filePaths: string[];
  17. files: Array<{
  18. path: string;
  19. size: number;
  20. fileType: string;
  21. }>;
  22. }
  23. /**
  24. * 图片选择
  25. * @apiName biz.util.chooseImage
  26. * @supportVersion ios: 5.1.1 android: 5.1.1
  27. * @author Android:狐斐 iOS:须莫
  28. */
  29. export declare function chooseImage$(params: IBizUtilChooseImageParams): Promise<IBizUtilChooseImageResult>;
  30. export default chooseImage$;