我正在查看Plugin.Camera的类型界面,并且看到以下内容:
# "@capacitor/ios": "^1.0.0-beta.8",
export interface CameraPhoto {
/**
* The base64 encoded data of the image, if using CameraResultType.Base64.
*/
base64Data?: string;
/**
* If using CameraResultType.Uri, the path will contain a full,
* platform-specific file URL that can be read later using the Filsystem API.
*/
path?: string;
/**
* webPath returns a path that can be used to set the src attribute of an image for efficient
* loading and rendering.
*/
webPath?: string;
/**
* Exif data, if any, retrieved from the image
*/
exif?: any;
/**
* The format of the image. Currently, only "jpeg" is supported.
*/
format: string;
}