# InspectableModifier

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/platform/InspectableValue.kt+class:androidx.compose.ui.platform.InspectableModifier) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0) Common/AllAndroid/JVM
- Cmn

  ```
  class InspectableModifier : InspectorValueInfo, Modifier.Element
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.ui.platform.InspectorValueInfo](https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectorValueInfo) ||
|   | ↳ | [androidx.compose.ui.platform.InspectableModifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectableModifier) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> This API will create more invalidations of your modifier than necessary, so it's use is discouraged. Implementing the inspectableProperties method on ModifierNodeElement is the recommended zero-cost alternative to exposing properties on a Modifier to tooling.

Annotates a range of modifiers in a chain with inspector metadata.

## Summary

| ### Nested types |
|---|
| `inner class https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectableModifier.End : https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element` **This class is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. |

| ### Public constructors |
|---|---|
| `[InspectableModifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectableModifier#InspectableModifier(kotlin.Function1))(inspectorInfo: https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectorInfo.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` **This function is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectableModifier.End` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectableModifier#end()` **This property is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn |

| ### Inherited functions |
|---|
| From [androidx.compose.ui.Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier) |---|---|---| | `open infix https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `[then](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier#then(androidx.compose.ui.Modifier))(other: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)` **This function is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | |
| From [androidx.compose.ui.Modifier.Element](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element) |---|---|---| | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[all](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element#all(kotlin.Function1))(predicate: (https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[any](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element#any(kotlin.Function1))(predicate: (https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | | `open R` | `<R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> [foldIn](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element#foldIn(kotlin.Any,kotlin.Function2))(initial: R, operation: (https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element, R) -> R)` **This function is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | | `open R` | `<R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> [foldOut](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element#foldOut(kotlin.Any,kotlin.Function2))(initial: R, operation: (https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element, R) -> R)` **This function is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | |

| ### Inherited properties |
|---|
| From [androidx.compose.ui.platform.InspectorValueInfo](https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectorValueInfo) |---|---|---| | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.sequences/-sequence/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ValueElement>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectorValueInfo#inspectableElements()` **This property is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectorValueInfo#nameFallback()` **This property is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectorValueInfo#valueOverride()` **This property is deprecated.** This API will create more invalidations of your modifier than necessary, so it's use is discouraged. | Cmn | |

## Public constructors

### InspectableModifier

Cmn Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
[InspectableModifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/InspectableModifier#InspectableModifier(kotlin.Function1))(inspectorInfo: InspectorInfo.() -> Unit)
```

> [!CAUTION]
> **This function is deprecated.**   
> This API will create more invalidations of your modifier than necessary, so it's use is discouraged. Implementing the inspectableProperties method on ModifierNodeElement is the recommended zero-cost alternative to exposing properties on a Modifier to tooling.

## Public properties

### end

Cmn Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val end: InspectableModifier.End
```

> [!CAUTION]
> **This property is deprecated.**   
> This API will create more invalidations of your modifier than necessary, so it's use is discouraged. Implementing the inspectableProperties method on ModifierNodeElement is the recommended zero-cost alternative to exposing properties on a Modifier to tooling.