DownloadType

public 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 methods

static DownloadType

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

static DownloadType[]

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

Enum Values

LATEST_MODEL

DownloadType DownloadType.LATEST_MODEL

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

LOCAL_MODEL

DownloadType DownloadType.LOCAL_MODEL

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

LOCAL_MODEL_UPDATE_IN_BACKGROUND

DownloadType DownloadType.LOCAL_MODEL_UPDATE_IN_BACKGROUND

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

Public methods

valueOf

public static DownloadType valueOf(String name)

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

public static DownloadType[] values()

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
DownloadType[]

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