@capgo/capacitor-photo-library
Capacitor plugin Displays photo gallery as web page, or boring native screen which you cannot modify but require no authorization.
Overview
Section titled “Overview”Capacitor plugin Displays photo gallery as web page, or boring native screen which you cannot modify but require no authorization.
Core Capabilities
Section titled “Core Capabilities”checkAuthorization- Returns the current authorization status without prompting the user.requestAuthorization- Requests access to the photo library if needed.getAlbums- Retrieves the available albums.getLibrary- Retrieves library assets along with URLs that can be displayed in the web view.
Public API
Section titled “Public API”| Method | Description |
|---|---|
checkAuthorization | Returns the current authorization status without prompting the user. |
requestAuthorization | Requests access to the photo library if needed. |
getAlbums | Retrieves the available albums. |
getLibrary | Retrieves library assets along with URLs that can be displayed in the web view. |
getPhotoUrl | Retrieves a displayable URL for the full resolution version of the asset. If you already called getLibrary with includeFullResolutionData, you normally do not need this method. |
getThumbnailUrl | Retrieves a displayable URL for a resized thumbnail of the asset. |
pickMedia | Opens the native system picker so the user can select media without granting full photo library access. The selected files are copied into the application cache and returned with portable URLs. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-photo-library.