You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

limited-file-selector

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

limited-file-selector

Basic implementation to select camera roll files and retrieve their persistent urls/pointers such that we can load the file repeatedly.

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

limited-file-selector

Basic implementation to select camera roll files and retrieve their persistent urls/pointers such that we can load the file repeatedly.

Install

npm install limited-file-selector
npx cap sync

API

  • echo(...)
  • pickLimitedLibraryPhotos()
  • selectFiles()
  • selectCameraRoll()
  • getMediaByIdentifier(...)

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>

pickLimitedLibraryPhotos()

pickLimitedLibraryPhotos() => Promise<void>

Enables the user to reselect their limited library photos. iOS only

selectFiles()

selectFiles() => Promise<{ mediaData: { identifier: string; url: string; name: string; duration: string; type: string; }[]; }>

Opens up the file explorer and allows the user to select items from there

Returns: Promise<{ mediaData: { identifier: string; url: string; name: string; duration: string; type: string; }[]; }>

selectCameraRoll()

selectCameraRoll() => Promise<{ mediaData: { identifier: string; url: string; name: string; duration: string; type: string; }[]; }>

Opens up the camera roll and allows the user to select items from there

Returns: Promise<{ mediaData: { identifier: string; url: string; name: string; duration: string; type: string; }[]; }>

getMediaByIdentifier(...)

getMediaByIdentifier(options: { identifier: string; }) => Promise<{ identifier: string; path: string; }>
ParamType
options{ identifier: string; }

Returns: Promise<{ identifier: string; path: string; }>

Keywords

capacitor

FAQs

Package last updated on 02 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts