DownloadType

enum DownloadType


Summary

Enum Values

LATEST_MODEL

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

LOCAL_MODEL

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

LOCAL_MODEL_UPDATE_IN_BACKGROUND

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

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_MODELDownloadType

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

LOCAL_MODEL

val DownloadType.LOCAL_MODELDownloadType

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

LOCAL_MODEL_UPDATE_IN_BACKGROUND

val DownloadType.LOCAL_MODEL_UPDATE_IN_BACKGROUNDDownloadType

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