# 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)

*** ** * ** ***


```
class DisplayBlendMode
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DisplayBlendMode#toString()()` Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DisplayBlendMode` for debugging. |

## Public companion properties

### ADDITIVE

```
val ADDITIVE: DisplayBlendMode
```

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

### ALPHA_BLEND

```
val ALPHA_BLEND: DisplayBlendMode
```

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

### NO_DISPLAY

```
val NO_DISPLAY: DisplayBlendMode
```

Blending is not supported.

## Public functions

### toString

```
open fun toString(): String
```

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

Note: Not intended for production use.