3.1.0 • Published 3 years ago

@bazumax/capacitor-firebase-storage v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@bazumax/capacitor-firebase-storage

Firebase Storage support for Android & iOS

Install

npm install @bazumax/capacitor-firebase-storage
npx cap sync

API

uploadFile(...)

uploadFile(options: UploadFileOptions) => Promise<UploadFileResults>
ParamType
optionsUploadFileOptions

Returns: Promise<UploadFileResults>


deleteFile(...)

deleteFile(options: { path: string; }) => Promise<{ message: string; }>
ParamType
options{ path: string; }

Returns: Promise<{ message: string; }>


getDownloadUrl(...)

getDownloadUrl(options: { path: string; }) => Promise<{ url: string; }>
ParamType
options{ path: string; }

Returns: Promise<{ url: string; }>


watchFileCreation(...)

watchFileCreation(options: { path: string; }) => Promise<{ url: string; }>
ParamType
options{ path: string; }

Returns: Promise<{ url: string; }>


addListener(string, ...)

addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventNamestring
listenerFuncListenerCallback

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

UploadFileResults

PropType
urlstring

UploadFileOptions

PropType
withImagePickerboolean
titlestring
storagePathstring

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

ListenerCallback

(err: any, ...args: any[]): void