CameraPlugin.getPhoto()
PluginCameraPlugingetPhotoLess than 1 minute
Gets a photo from the local device.
CameraPlugin.getPhoto(options)
Parameters
options:
Options object with type ImageOptions.
Returns
A Promise that resolves to an ArrayBuffer.
Example
import { cameraPlugin } from "@plaoc/plugins";
cameraPlugin.getPhoto({})
.then(res => {
// handle result
})
Platform Compatibility
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
getPhoto | ✅ | ✅ | ✅ | X |
See Also
Powered by Waline v2.15.7