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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.compose.ui.tooling\n===========================\n\nAndroid/JVM\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------|------------------------------------------------------------------|---------|\n| [PreviewActivity](/reference/kotlin/androidx/compose/ui/tooling/PreviewActivity) | Activity used to run `@Composable` previews from Android Studio. | android |\n\nObjects\n-------\n\n|--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|---------|\n| [ComposableInvoker](/reference/kotlin/androidx/compose/ui/tooling/ComposableInvoker) | **This object is deprecated.** Use androidx.compose.runtime.reflect.ComposableMethodInvoker instead | android |\n\nTop-level functions summary\n---------------------------\n\n|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | `@`[Composable](/reference/kotlin/androidx/compose/runtime/Composable) ~~[InInspectionModeOnly](/reference/kotlin/androidx/compose/ui/tooling/package-summary#InInspectionModeOnly(kotlin.Function0))~~`(content: @`[Composable](/reference/kotlin/androidx/compose/runtime/Composable)` () `-\u003e` `[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 |\n\nTop-level functions\n-------------------\n\n### InInspectionModeOnly\n\nandroid \nArtifact: [androidx.compose.ui:ui-tooling](/jetpack/androidx/releases/compose-ui) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/ui/tooling/Inspectable.android.kt+function:InInspectionModeOnly) \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0) \nDeprecated in [1.1.0](/jetpack/androidx/releases/compose-ui#1.1.0) \n\n```\n@Composable\nfun [InInspectionModeOnly](/reference/kotlin/androidx/compose/ui/tooling/package-summary#InInspectionModeOnly(kotlin.Function0))(content: @Composable () -\u003e Unit): Unit\n```\n| **This function is deprecated.** \n| This method should not be used in application code and will be removed soon.\n\nA 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."]]