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

35 lines
1.4 KiB
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.uploadImageFromCamera
*/
export interface IBizUtilUploadImageFromCameraParams {
/** 是否压缩 */
compression?: boolean;
/** Number为正整数取值 0~100 表示图片压缩质量,数值越小压缩越严重 */
quality?: number;
/** Number为正整数取值 0~100 表示图片压缩质量,数值越小缩放越多 */
resize?: number;
/** 水印信息钉钉v2.11.0之后版本支持 */
stickers?: {
time?: string;
dateWeather?: string;
username?: string;
address?: string;
};
}
/**
* 上传图片 返回结果定义
* @apiName biz.util.uploadImageFromCamera
* @returnDemo ['https://static.dingtalk.com/media/lADOA9bQH8zIzMg_200_200.jpg']
*/
export declare type IBizUtilUploadImageFromCameraResult = string[];
/**
* 上传图片(仅支持拍照上传)
* 只支持直接拍照上传即调用这个API之后将直接调起相机界面
* 比如可以应用在需要用户上传即时照片的场景。成功上传之后回调onSuccess方法返回图片链接
* @apiName biz.util.uploadImageFromCamera
* @supportVersion ios: 2.4.0 android: 2.4.0
*/
export declare function uploadImageFromCamera$(params: IBizUtilUploadImageFromCameraParams): Promise<IBizUtilUploadImageFromCameraResult>;
export default uploadImageFromCamera$;