DownloadType

enum DownloadType


Summary

Enum Values

LATEST_MODEL

This enum value is deprecated.

Firebase ML is deprecated and will be shut down on June 15, 2027.

LOCAL_MODEL

This enum value is deprecated.

Firebase ML is deprecated and will be shut down on June 15, 2027.

LOCAL_MODEL_UPDATE_IN_BACKGROUND

This enum value is deprecated.

Firebase ML is deprecated and will be shut down on June 15, 2027.

Public functions

java-static DownloadType!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<DownloadType!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

LATEST_MODEL

val DownloadType.LATEST_MODEL: DownloadType

Always return latest model, check for latest model and download new model (when needed) before returning.

LOCAL_MODEL

val DownloadType.LOCAL_MODEL: DownloadType

Use local model when present, otherwise download and return latest model

LOCAL_MODEL_UPDATE_IN_BACKGROUND

val DownloadType.LOCAL_MODEL_UPDATE_IN_BACKGROUND: DownloadType

When local model present, use local model and download latest model in background. Otherwise, download and return latest model.

Public functions

valueOf

java-static fun valueOf(name: String!): DownloadType!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
DownloadType!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<DownloadType!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<DownloadType!>!

an array containing the constants of this enum type, in the order they're declared