ModelDownloaderKt

public final class ModelDownloaderKt


Summary

Public fields

final @NonNull FirebaseModelDownloader

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

Public methods

static final File
static final long
static final long
static final @NonNull String
static final @NonNull String
static final @NonNull CustomModelDownloadConditions

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

static final @NonNull FirebaseModelDownloader

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

Public fields

modelDownloader

public final @NonNull FirebaseModelDownloader modelDownloader

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.

Public methods

ModelDownloaderKt.component1

public static final File ModelDownloaderKt.component1(@NonNull CustomModel receiver)

ModelDownloaderKt.component2

public static final long ModelDownloaderKt.component2(@NonNull CustomModel receiver)

ModelDownloaderKt.component3

public static final long ModelDownloaderKt.component3(@NonNull CustomModel receiver)

ModelDownloaderKt.component4

public static final @NonNull String ModelDownloaderKt.component4(@NonNull CustomModel receiver)

ModelDownloaderKt.component5

public static final @NonNull String ModelDownloaderKt.component5(@NonNull CustomModel receiver)

customModelDownloadConditions

public static final @NonNull CustomModelDownloadConditions customModelDownloadConditions(
    @ExtensionFunctionType @NonNull Function1<@NonNull CustomModelDownloadConditions.BuilderUnit> init
)

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.

ModelDownloaderKt.modelDownloader

public static final @NonNull FirebaseModelDownloader ModelDownloaderKt.modelDownloader(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app
)

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.