# DebugFlags

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/MotionLayout.kt+class:androidx.constraintlayout.compose.DebugFlags) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
value class DebugFlags
```

<br />

*** ** * ** ***

Flags to use with MotionLayout to enable visual debugging.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#None()` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#All()` |   |

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#All()` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags` instance with all flags enabled. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#None()` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags` instance with all flags disabled. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#DebugFlags(kotlin.Boolean,kotlin.Boolean,kotlin.Boolean)( showBounds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, showPaths: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, showKeyPositions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#showBounds()` When enabled, shows the bounds of widgets at the start and end of the current transition. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#showKeyPositions()` When enabled, shows a diamond icon representing KeyPositions defined for each widget along the path. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags#showPaths()` When enabled, shows the paths each widget will take through the current transition. |

## Public companion properties

### All

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val All: DebugFlags
```

`https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags` instance with all flags enabled.

Note that this includes any flags added in the future.

### None

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val None: DebugFlags
```

`https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/DebugFlags` instance with all flags disabled.

## Public constructors

### DebugFlags

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
DebugFlags(
    showBounds: Boolean = false,
    showPaths: Boolean = false,
    showKeyPositions: Boolean = false
)
```

| Parameters |
|---|---|
| `showBounds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | Whether to show the bounds of widgets at the start and end of the current transition. |
| `showPaths: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | Whether to show the paths each widget will take through the current transition. |
| `showKeyPositions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | Whether to show a diamond icon representing KeyPositions defined for each widget along the path. |

## Public functions

### toString

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

## Public properties

### showBounds

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val showBounds: Boolean
```

When enabled, shows the bounds of widgets at the start and end of the current transition.

### showKeyPositions

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val showKeyPositions: Boolean
```

When enabled, shows a diamond icon representing KeyPositions defined for each widget along the path.

### showPaths

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val showPaths: Boolean
```

When enabled, shows the paths each widget will take through the current transition.