StorageKt

public final class StorageKt


Summary

Public fields

final @NonNull FirebaseStorage

Returns the FirebaseStorage instance of the default FirebaseApp.

final @NonNull Flow<@NonNull TaskState<@NonNull T>>

Starts listening to this task's progress and emits its values via a Flow.

Public methods

static final long

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide bytesTransferred.

static final @NonNull List<@NonNull StorageReference>

Destructuring declaration for ListResult to provide its items.

static final long

Destructuring declaration for StreamDownloadTask.TaskSnapshot to provide bytesTransferred.

static final long

Destructuring declaration for UploadTask.TaskSnapshot to provide bytesTransferred.

static final long

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide totalByteCount.

static final @NonNull List<@NonNull StorageReference>

Destructuring declaration for ListResult to provide its prefixes.

static final long

Destructuring declaration for StreamDownloadTask.TaskSnapshot to provide totalByteCount.

static final long

Destructuring declaration for UploadTask.TaskSnapshot to provide totalByteCount.

static final String

Destructuring declaration for ListResult to provide its pageToken.

static final @NonNull InputStream

Destructuring declaration for StreamDownloadTask.TaskSnapshot to provide its stream.

static final StorageMetadata

Destructuring declaration for UploadTask.TaskSnapshot to provide its metadata.

static final Uri

Destructuring declaration for UploadTask.TaskSnapshot to provide its uploadSessionUri.

static final @NonNull FirebaseStorage

Returns the FirebaseStorage instance of a given FirebaseApp.

static final @NonNull FirebaseStorage

Returns the FirebaseStorage instance for a custom storage bucket at url.

static final @NonNull FirebaseStorage
StorageKt.storage(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app,
    @NonNull String url
)

Returns the FirebaseStorage instance of a given FirebaseApp and storage bucket url.

static final @NonNull StorageMetadata

Returns a StorageMetadata object initialized using the init function.

Public fields

storage

public final @NonNull FirebaseStorage storage

Returns the FirebaseStorage instance of the default FirebaseApp.

taskState

public final @NonNull Flow<@NonNull TaskState<@NonNull T>> taskState

Starts listening to this task's progress and emits its values via a Flow.

Public methods

StorageKt.component1

public static final long StorageKt.component1(@NonNull FileDownloadTask.TaskSnapshot receiver)

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide bytesTransferred.

Returns
long

the bytesTransferred of the FileDownloadTask.TaskSnapshot

StorageKt.component1

public static final @NonNull List<@NonNull StorageReferenceStorageKt.component1(@NonNull ListResult receiver)

Destructuring declaration for ListResult to provide its items.

Returns
@NonNull List<@NonNull StorageReference>

the items of the ListResult

StorageKt.component1

public static final long StorageKt.component1(@NonNull StreamDownloadTask.TaskSnapshot receiver)

Destructuring declaration for StreamDownloadTask.TaskSnapshot to provide bytesTransferred.

Returns
long

the bytesTransferred of the StreamDownloadTask.TaskSnapshot

StorageKt.component1

public static final long StorageKt.component1(@NonNull UploadTask.TaskSnapshot receiver)

Destructuring declaration for UploadTask.TaskSnapshot to provide bytesTransferred.

Returns
long

the bytesTransferred of the UploadTask.TaskSnapshot

StorageKt.component2

public static final long StorageKt.component2(@NonNull FileDownloadTask.TaskSnapshot receiver)

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide totalByteCount.

Returns
long

the totalByteCount of the FileDownloadTask.TaskSnapshot

StorageKt.component2

public static final @NonNull List<@NonNull StorageReferenceStorageKt.component2(@NonNull ListResult receiver)

Destructuring declaration for ListResult to provide its prefixes.

Returns
@NonNull List<@NonNull StorageReference>

the prefixes of the ListResult

StorageKt.component2

public static final long StorageKt.component2(@NonNull StreamDownloadTask.TaskSnapshot receiver)

Destructuring declaration for StreamDownloadTask.TaskSnapshot to provide totalByteCount.

Returns
long

the totalByteCount of the StreamDownloadTask.TaskSnapshot

StorageKt.component2

public static final long StorageKt.component2(@NonNull UploadTask.TaskSnapshot receiver)

Destructuring declaration for UploadTask.TaskSnapshot to provide totalByteCount.

Returns
long

the totalByteCount of the UploadTask.TaskSnapshot

StorageKt.component3

public static final String StorageKt.component3(@NonNull ListResult receiver)

Destructuring declaration for ListResult to provide its pageToken.

Returns
String

the pageToken of the ListResult

StorageKt.component3

public static final @NonNull InputStream StorageKt.component3(@NonNull StreamDownloadTask.TaskSnapshot receiver)

Destructuring declaration for StreamDownloadTask.TaskSnapshot to provide its stream.

StorageKt.component3

public static final StorageMetadata StorageKt.component3(@NonNull UploadTask.TaskSnapshot receiver)

Destructuring declaration for UploadTask.TaskSnapshot to provide its metadata.

Returns
StorageMetadata

the metadata of the UploadTask.TaskSnapshot

StorageKt.component4

public static final Uri StorageKt.component4(@NonNull UploadTask.TaskSnapshot receiver)

Destructuring declaration for UploadTask.TaskSnapshot to provide its uploadSessionUri.

Returns
Uri

the uploadSessionUri of the UploadTask.TaskSnapshot

StorageKt.storage

public static final @NonNull FirebaseStorage StorageKt.storage(@NonNull Firebase receiver, @NonNull FirebaseApp app)

Returns the FirebaseStorage instance of a given FirebaseApp.

StorageKt.storage

public static final @NonNull FirebaseStorage StorageKt.storage(@NonNull Firebase receiver, @NonNull String url)

Returns the FirebaseStorage instance for a custom storage bucket at url.

StorageKt.storage

public static final @NonNull FirebaseStorage StorageKt.storage(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app,
    @NonNull String url
)

Returns the FirebaseStorage instance of a given FirebaseApp and storage bucket url.

storageMetadata

public static final @NonNull StorageMetadata storageMetadata(
    @ExtensionFunctionType @NonNull Function1<@NonNull StorageMetadata.BuilderUnit> init
)

Returns a StorageMetadata object initialized using the init function.