# DisplayBlendMode

Artifact: [androidx.xr.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/xr-runtime) [View Source](https://cs.android.com/search?q=file:androidx/xr/runtime/XrCapabilities.kt+class:androidx.xr.runtime.DisplayBlendMode) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

*** ** * ** ***


```
public final class DisplayBlendMode
```

<br />

*** ** * ** ***

A device capability that determines how virtual content is added to the real world.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode` | `https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode#ADDITIVE()` Blends virtual content with the real world by adding pixel values for RGB components. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode` | `https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode#ALPHA_BLEND()` Alpha-blends pixel values to blend virtual content with the real world. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode` | `https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode#NO_DISPLAY()` Blending is not supported. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode` for debugging. |

## Public fields

### ADDITIVE

```
public static final @NonNull DisplayBlendMode ADDITIVE
```

Blends virtual content with the real world by adding pixel values for RGB components. Alpha is ignored. Black pixels will appear transparent.

### ALPHA_BLEND

```
public static final @NonNull DisplayBlendMode ALPHA_BLEND
```

Alpha-blends pixel values to blend virtual content with the real world.

### NO_DISPLAY

```
public static final @NonNull DisplayBlendMode NO_DISPLAY
```

Blending is not supported.

## Public methods

### toString

```
public @NonNull String toString()
```

Returns a string representation of `https://developer.android.com/reference/androidx/xr/runtime/DisplayBlendMode` for debugging.

Note: Not intended for production use.