# androidx.compose.ui.tooling

# androidx.compose.ui.tooling

Android/JVM

## Classes

|---------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|---------|
| [PreviewActivity](https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/PreviewActivity) | Activity used to run`@Composable`previews from Android Studio. | android |

## Objects

|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|---------|
| [ComposableInvoker](https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/ComposableInvoker) | **This object is deprecated.**Use androidx.compose.runtime.reflect.ComposableMethodInvoker instead | android |

## Top-level functions summary

|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | `@`[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable) ~~[InInspectionModeOnly](https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/package-summary#InInspectionModeOnly(kotlin.Function0))~~`(content: @`[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable)` () `->` `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)`)` **This function is deprecated.**This method should not be used in application code and will be removed soon. | android |

## Top-level functions

### InInspectionModeOnly

android  
Artifact:[androidx.compose.ui:ui-tooling](https://developer.android.com/jetpack/androidx/releases/compose-ui)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/ui/tooling/Inspectable.android.kt+function:InInspectionModeOnly)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)  

```
@Composable
fun [InInspectionModeOnly](https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/package-summary#InInspectionModeOnly(kotlin.Function0))(content: @Composable () -> Unit): Unit
```
| **This function is deprecated.**   
| This method should not be used in application code and will be removed soon.

A wrapper for inspection-mode-only behavior. The children of this component will only be included in the composition when the composition is in inspection mode.