# RuntimeFlavor

```
enum RuntimeFlavor
```

*** ** * ** ***

Represents a TFLite runtime. In contrast to `https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime`, this enum represents the actual runtime that is being used, whereas the latter represents a preference for which runtime should be used.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor#APPLICATION` | A TFLite runtime built directly into the application. |
| `https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor#SYSTEM` | A TFLite runtime provided by the system (TFLite in Google Play Services). |

| ### Public functions |
|---|---|
| `java-static https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor!` | `https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor#valueOf(java.lang.String)(name: https://developers.google.com/edge/api/litert/kotlin/kotlin/String!)` Returns the enum constant of this type with the specified name. |
| `java-static https://developers.google.com/edge/api/litert/kotlin/kotlin/Array<https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor!>!` | `https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### APPLICATION

```
val RuntimeFlavor.APPLICATION: RuntimeFlavor
```

A TFLite runtime built directly into the application.

### SYSTEM

```
val RuntimeFlavor.SYSTEM: RuntimeFlavor
```

A TFLite runtime provided by the system (TFLite in Google Play Services).

## Public functions

### valueOf

```
java-static fun valueOf(name: String!): RuntimeFlavor!
```

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 |
|---|---|
| `https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor!` | the enum constant with the specified name |

| Throws |
|---|---|
| `https://developers.google.com/edge/api/litert/kotlin/java/lang/IllegalArgumentException` | if this enum type has no constant with the specified name |

### values

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

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 |
|---|---|
| `https://developers.google.com/edge/api/litert/kotlin/kotlin/Array<https://developers.google.com/edge/api/litert/kotlin/org/tensorflow/lite/RuntimeFlavor!>!` | an array containing the constants of this enum type, in the order they're declared |