react-native-firebase / storage/lib/modular
storage/lib/modular
StringFormat
StringFormat = typeof
StringFormat[keyof typeofStringFormat]
Defined in: storage/lib/modular/index.d.ts:32
Union of literal string values in StringFormat "enum" object
StringFormat
constStringFormat:FirebaseStorageTypes.StringFormat
Defined in: storage/lib/modular/index.d.ts:32
TaskEvent
constTaskEvent:FirebaseStorageTypes.TaskEvent
Defined in: storage/lib/modular/index.d.ts:33
TaskState
constTaskState:FirebaseStorageTypes.TaskState
Defined in: storage/lib/modular/index.d.ts:34
child()
child(
storageRef,path):Reference
Defined in: storage/lib/modular/index.d.ts:269
Returns a reference to a relative path from the given reference.
connectStorageEmulator()
connectStorageEmulator(
storage,host,port,options?):void
Defined in: storage/lib/modular/index.d.ts:83
Connects a Storage instance to the Firebase Storage emulator.
deleteObject()
deleteObject(
storageRef):Promise<void>
Defined in: storage/lib/modular/index.d.ts:103
Deletes the object at the given reference's location.
getBlob()
getBlob(
storageRef,maxDownloadSizeBytes?):Promise<Blob>
Defined in: storage/lib/modular/index.d.ts:111
Retrieves the blob at the given reference's location. Throws an error if the object is not found.
getBytes()
getBytes(
storageRef,maxDownloadSizeBytes?):Promise<ArrayBuffer>
Defined in: storage/lib/modular/index.d.ts:120
Retrieves bytes (up to the specified max size) from an object at the given reference's location. Throws an error if the object is not found or if the size exceeds the maximum allowed.
getDownloadURL()
getDownloadURL(
storageRef):Promise<string>
Defined in: storage/lib/modular/index.d.ts:130
Retrieves a long-lived download URL for the object at the given reference's location.
getMetadata()
getMetadata(
storageRef):Promise<FullMetadata>
Defined in: storage/lib/modular/index.d.ts:137
Retrieves metadata for the object at the given reference's location.
Call Signature
getStorage(
app?,bucketUrl?):Module
Defined in: storage/lib/modular/index.d.ts:49
Returns the existing default Storage instance that is associated with the default FirebaseApp. The default storage bucket is used. If no instance exists, initializes a new instance with default settings.
bucketUrl?
string
The gs:// url to your Firebase Storage Bucket. If not passed, uses the app's default Storage Bucket.
Call Signature
getStorage(
app?):Module
Defined in: storage/lib/modular/index.d.ts:60
Returns the existing default Storage instance that is associated with the provided FirebaseApp. The default storage bucket is used. If no instance exists, initializes a new instance with default settings.
Call Signature
getStorage(
app?,bucketUrl?):Module
Defined in: storage/lib/modular/index.d.ts:72
Returns the existing default Storage instance that is associated with the provided FirebaseApp. If no instance exists, initializes a new instance with default settings.
app?
FirebaseApp
The FirebaseApp instance that the returned Storage
instance is associated with. If null the default app is used.
Call Signature
getStorage(
app?,bucketUrl?):Module
Defined in: storage/lib/modular/index.d.ts:74
Returns the existing default Storage instance that is associated with the default FirebaseApp. The default storage bucket is used. If no instance exists, initializes a new instance with default settings.
bucketUrl?
string
The gs:// url to your Firebase Storage Bucket. If not passed, uses the app's default Storage Bucket.
getStream()
getStream(
storageRef,maxDownloadSizeBytes?):ReadableStream
Defined in: storage/lib/modular/index.d.ts:145
Retrieves a readable stream for the object at the given reference's location. This API is only available in Node.js.
list()
list(
storageRef,options?):Promise<ListResult>
Defined in: storage/lib/modular/index.d.ts:156
Lists items and prefixes under the given reference.
listAll()
listAll(
storageRef):Promise<ListResult>
Defined in: storage/lib/modular/index.d.ts:163
Lists all items and prefixes under the given reference.
putFile()
putFile(
storageRef,filePath,metadata?):Task
Defined in: storage/lib/modular/index.d.ts:246
Puts a file from a local disk onto the storage bucket at the given reference.
ref()
ref(
storage,path?):Reference
Defined in: storage/lib/modular/index.d.ts:96
Creates a Reference from a given path or URL.
refFromURL()
refFromURL(
storage,url):Reference
Defined in: storage/lib/modular/index.d.ts:223
Creates a Reference from a storage bucket URL.
setMaxDownloadRetryTime()
setMaxDownloadRetryTime(
storage,time):Promise<void>
Defined in: storage/lib/modular/index.d.ts:276
Sets the maximum time in milliseconds to retry download operations if a failure occurs.
setMaxOperationRetryTime()
setMaxOperationRetryTime(
storage,time):Promise<void>
Defined in: storage/lib/modular/index.d.ts:230
Sets the maximum time in milliseconds to retry operations other than upload and download if a failure occurs.
setMaxUploadRetryTime()
setMaxUploadRetryTime(
storage,time):Promise<void>
Defined in: storage/lib/modular/index.d.ts:237
Sets the maximum time in milliseconds to retry upload operations if a failure occurs.
toString()
toString(
storageRef):string
Defined in: storage/lib/modular/index.d.ts:261
Returns a gs:// URL for the object at the given reference.
updateMetadata()
updateMetadata(
storageRef,metadata):Promise<FullMetadata>
Defined in: storage/lib/modular/index.d.ts:171
Updates metadata for the object at the given reference.
uploadBytes()
uploadBytes(
storageRef,data,metadata?):Promise<TaskResult>
Defined in: storage/lib/modular/index.d.ts:183
Uploads data to the object's location at the given reference. The upload is not resumable.
uploadBytesResumable()
uploadBytesResumable(
storageRef,data,metadata?):Task
Defined in: storage/lib/modular/index.d.ts:196
Initiates a resumable upload session for the data to the object's location at the given reference.
uploadString()
uploadString(
storageRef,data,format?,metadata?):Task
Defined in: storage/lib/modular/index.d.ts:210
Uploads a string to the object's location at the given reference. The string format must be specified.
writeToFile()
writeToFile(
storageRef,filePath):Task
Defined in: storage/lib/modular/index.d.ts:254
Downloads a file to the specified local file path on the device.
