# Modality


```
@IntDef(value = [0, 1])
@Retention(value = AnnotationRetention.SOURCE)
@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation Modality
```

<br />

*** ** * ** ***

Modalities that may be supported by an `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/EmbeddingModel`.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/Modality#IMAGE() = 1` Image input modality (`https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/ImagePart`). |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/Modality#TEXT() = 0` Text input modality (`https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/TextPart`). |

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/Modality#Modality()()` |

## Constants

### IMAGE

```
const val IMAGE = 1: Int
```

Image input modality (`https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/ImagePart`).

### TEXT

```
const val TEXT = 0: Int
```

Text input modality (`https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/TextPart`).

## Public constructors

### Modality

```
Modality()
```