0.2.0 • Published 8 months ago

limited-file-selector v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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(...)

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; }>


0.2.0

8 months ago