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.

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. 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.

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. 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.

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.