cordova-plugin-camera/README.md

25 lines
985 B
Markdown
Raw Normal View History

---
title: Camera
description: Take pictures with the device camera.
---
2020-05-12 12:23:25 +08:00
# cordova-plugin-splashscreen
2020-05-12 12:23:25 +08:00
在 [cordova-plugin-camera](https://github.com/apache/cordova-plugin-camera.git) 的基础上修改了ios端的代码为[customCamera](https://github.com/geneanet/customCamera.git)的ios的代码,防止ios疯狂调用造成的webview卡死的问题
2020-05-12 12:23:25 +08:00
- [Installation](#installation)
- [Preferences](#preferences)
- [Other](#other)
## Installation
2020-05-12 12:28:33 +08:00
```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
```
2020-05-12 12:23:25 +08:00
## Preferences
- iOS端由于代码调整,导致原插件仅支持 `quality` `saveToPhotoAlbum` 参数,返回数据格式为 **base64**;
## Other
- 其他配置及插件使用方法请移步[cordova-plugin-camera](https://github.com/apache/cordova-plugin-camera.git)