awesome-cordova-plugins/docs/plugins/photo-library.md

20 lines
814 B
Markdown
Raw Permalink Normal View History

2021-09-29 21:46:28 +08:00
# Photo Library
```text
$ ionic cordova plugin add cordova-plugin-photo-library --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="To choose photos"
$ npm install @awesome-cordova-plugins/photo-library
```
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/photo-library/)
Plugin Repo: [https://github.com/terikon/cordova-plugin-photo-library](https://github.com/terikon/cordova-plugin-photo-library)
The PhotoLibrary plugin allows access to photos from device by url. So you can use plain img tag to display photos and their thumbnails, and different 3rd party libraries as well. Saving photos and videos to the library is also supported. cdvphotolibrary urls should be trusted by Angular. See plugin homepage to learn how.
## Supported platforms
* Android
* Browser
* iOS