@bazumax/capacitor-firebase-storage
v3.1.0
Published
Firebase Storage support for Android & iOS
Readme
@bazumax/capacitor-firebase-storage
Firebase Storage support for Android & iOS
Install
npm install @bazumax/capacitor-firebase-storage
npx cap syncAPI
uploadFile(...)deleteFile(...)getDownloadUrl(...)watchFileCreation(...)addListener(string, ...)removeAllListeners()- Interfaces
- Type Aliases
uploadFile(...)
uploadFile(options: UploadFileOptions) => Promise<UploadFileResults>| Param | Type |
| ------------- | --------------------------------------------------------------- |
| options | UploadFileOptions |
Returns: Promise<UploadFileResults>
deleteFile(...)
deleteFile(options: { path: string; }) => Promise<{ message: string; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { path: string; } |
Returns: Promise<{ message: string; }>
getDownloadUrl(...)
getDownloadUrl(options: { path: string; }) => Promise<{ url: string; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { path: string; } |
Returns: Promise<{ url: string; }>
watchFileCreation(...)
watchFileCreation(options: { path: string; }) => Promise<{ url: string; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { path: string; } |
Returns: Promise<{ url: string; }>
addListener(string, ...)
addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle> & PluginListenerHandle| Param | Type |
| ------------------ | ------------------------------------------------------------- |
| eventName | string |
| listenerFunc | ListenerCallback |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
removeAllListeners()
removeAllListeners() => Promise<void>Interfaces
UploadFileResults
| Prop | Type |
| --------- | ------------------- |
| url | string |
UploadFileOptions
| Prop | Type |
| --------------------- | -------------------- |
| withImagePicker | boolean |
| title | string |
| storagePath | string |
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
Type Aliases
ListenerCallback
(err: any, ...args: any[]): void
