com.google.firebase.ml.modeldownloader.ktx

Top-level functions summary

CustomModelDownloadConditions

This function is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Extension functions summary

operator File?
operator Long
operator Long
operator String
operator String
FirebaseModelDownloader

Accessing this object for Kotlin apps has changed; see the migration guide.

Extension properties summary

FirebaseModelDownloader

Accessing this object for Kotlin apps has changed; see the migration guide.

Top-level functions

customModelDownloadConditions

fun customModelDownloadConditions(init: CustomModelDownloadConditions.Builder.() -> Unit): CustomModelDownloadConditions

Returns a CustomModelDownloadConditions initialized using the init function.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-ml-modeldownloade-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Extension functions

component1

operator fun CustomModel.component1(): File?

component2

operator fun CustomModel.component2(): Long

component3

operator fun CustomModel.component3(): Long

component4

operator fun CustomModel.component4(): String

component5

operator fun CustomModel.component5(): String

modelDownloader

fun Firebase.modelDownloader(app: FirebaseApp): FirebaseModelDownloader

Accessing this object for Kotlin apps has changed; see the migration guide.

Returns the FirebaseModelDownloader instance of a given FirebaseApp.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-ml-modeldownloade-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Extension properties

modelDownloader

val Firebase.modelDownloaderFirebaseModelDownloader

Accessing this object for Kotlin apps has changed; see the migration guide.

Returns the FirebaseModelDownloader instance of the default FirebaseApp.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-ml-modeldownloade-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.