Skip to content

@capgo/capacitor-photo-library

Capacitor plugin Displays photo gallery as web page, or boring native screen which you cannot modify but require no authorization.

Capacitor plugin Displays photo gallery as web page, or boring native screen which you cannot modify but require no authorization.

  • 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.
MethodDescription
checkAuthorizationReturns the current authorization status without prompting the user.
requestAuthorizationRequests access to the photo library if needed.
getAlbumsRetrieves the available albums.
getLibraryRetrieves library assets along with URLs that can be displayed in the web view.
getPhotoUrlRetrieves 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.
getThumbnailUrlRetrieves a displayable URL for a resized thumbnail of the asset.
pickMediaOpens 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.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-photo-library.