# Modality


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

<br />

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Modality#IMAGE() = 1` Image input modality (`https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/ImagePart`). |
| `static final int` | `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Modality#TEXT() = 0` Text input modality (`https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TextPart`). |

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

## Constants

### IMAGE

```
public static final int IMAGE = 1
```

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

### TEXT

```
public static final int TEXT = 0
```

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

## Public constructors

### Modality

```
public Modality()
```