capacitor-file-chunk-reader
v0.0.1
Published
A capacitor plugin for Android and IOS to read BIG files in chunks
Downloads
61
Readme
capacitor-file-chunk-reader
A capacitor plugin for Android and IOS to read BIG files in chunks
Install
npm install capacitor-file-chunk-reader
npx cap sync
API
readChunk(...)
readChunk(options: MobileOptions) => Promise<{ data: string; }>
| Param | Type |
| ------------- | ------------------------------------------------------- |
| options
| MobileOptions |
Returns: Promise<{ data: string; }>
uploadFileChunk(...)
uploadFileChunk(options: MobileOptions | WebOptions) => void
| Param | Type |
| ------------- | ----------------------------------------------------------------------------------------------- |
| options
| MobileOptions | WebOptions |
uploadFile(...)
uploadFile(options: MobileOptions | WebOptions) => void
| Param | Type |
| ------------- | ----------------------------------------------------------------------------------------------- |
| options
| MobileOptions | WebOptions |
Interfaces
MobileOptions
| Prop | Type |
| ----------------- | ------------------- |
| uri
| string |
| accessToken
| string |
| targetPath
| string |
| fileSize
| number |
WebOptions
| Prop | Type |
| ----------------- | ------------------- |
| accessToken
| string |
| file
| File |
| targetPath
| string |