cordova-plugin-camera-dev/README.md
2020-05-12 12:28:33 +08:00

25 lines
985 B
Markdown

---
title: Camera
description: Take pictures with the device camera.
---
# cordova-plugin-splashscreen
在 [cordova-plugin-camera](https://github.com/apache/cordova-plugin-camera.git) 的基础上修改了ios端的代码为[customCamera](https://github.com/geneanet/customCamera.git)的ios的代码,防止ios疯狂调用造成的webview卡死的问题
- [Installation](#installation)
- [Preferences](#preferences)
- [Other](#other)
## Installation
```bash
# 安装前请先卸载 `cordova-plugin-camera` 和 `org.geneanet.customCamera` 插件
cordova plugin rm cordova-plugin-camera
cordova plugin rm org.geneanet.customCamera
# 安装插件
cordova plugin add https://gitee.com/shuto/cordova-plugin-camera.git
```
## Preferences
- iOS端由于代码调整,导致原插件仅支持 `quality` `saveToPhotoAlbum` 参数,返回数据格式为 **base64**;
## Other
- 其他配置及插件使用方法请移步[cordova-plugin-camera](https://github.com/apache/cordova-plugin-camera.git)