Added in API level 31

Builder

class Builder
kotlin.Any
   ↳ android.app.appsearch.StorageInfo.Builder

Builder for StorageInfo objects.

Summary

Public constructors

Public methods
StorageInfo

Builds a StorageInfo object.

StorageInfo.Builder
setAliveDocumentsCount(aliveDocumentsCount: Int)

Sets the number of alive documents.

StorageInfo.Builder
setAliveNamespacesCount(aliveNamespacesCount: Int)

Sets the number of alive namespaces.

StorageInfo.Builder
setSizeBytes(sizeBytes: Long)

Sets the size in bytes.

Public constructors

Builder

Added in API level 31
Builder()

Public methods

build

Added in API level 31
fun build(): StorageInfo

Builds a StorageInfo object.

Return
StorageInfo This value cannot be null.

setAliveDocumentsCount

Added in API level 31
fun setAliveDocumentsCount(aliveDocumentsCount: Int): StorageInfo.Builder

Sets the number of alive documents.

Return
StorageInfo.Builder This value cannot be null.

setAliveNamespacesCount

Added in API level 31
fun setAliveNamespacesCount(aliveNamespacesCount: Int): StorageInfo.Builder

Sets the number of alive namespaces.

Return
StorageInfo.Builder This value cannot be null.

setSizeBytes

Added in API level 31
fun setSizeBytes(sizeBytes: Long): StorageInfo.Builder

Sets the size in bytes.

Return
StorageInfo.Builder This value cannot be null.