2020-05-12 12:23:25 +08:00

24 lines
919 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
// 安装前请先卸载 cordova-plugin-camera 插件
cordova plugin rm cordova-plugin-camera
// 安装插件
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)