Stay organized with collections
Save and categorize content based on your preferences.
Classes
Extension functions summary
Extension functions
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.compose.runtime.reflect\n================================\n\nClasses\n-------\n\n|-----------------------------------------------------------------------------------------|------------------------------------|\n| [ComposableMethod](/reference/kotlin/androidx/compose/runtime/reflect/ComposableMethod) | Represents the @Composable method. |\n\nExtension functions summary\n---------------------------\n\n|--------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ComposableMethod](/reference/kotlin/androidx/compose/runtime/reflect/ComposableMethod)`?` | [Method](https://developer.android.com/reference/java/lang/reflect/Method.html)`.`[asComposableMethod](/reference/kotlin/androidx/compose/runtime/reflect/package-summary#(java.lang.reflect.Method).asComposableMethod())`()` |\n| [ComposableMethod](/reference/kotlin/androidx/compose/runtime/reflect/ComposableMethod) | [Class](https://developer.android.com/reference/java/lang/Class.html)`\u003c*\u003e.`[getDeclaredComposableMethod](/reference/kotlin/androidx/compose/runtime/reflect/package-summary#(java.lang.Class).getDeclaredComposableMethod(kotlin.String,kotlin.Array))`(` ` methodName: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`,` ` vararg args: `[Class](https://developer.android.com/reference/java/lang/Class.html)`\u003c*\u003e` `)` Find the given @Composable method by name. |\n\nExtension functions\n-------------------\n\n### asComposableMethod\n\nArtifact: [androidx.compose.runtime:runtime](/jetpack/androidx/releases/compose-runtime) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/reflect/ComposableMethod.jvm.kt+function:asComposableMethod) \nAdded in [1.3.0](/jetpack/androidx/releases/compose-runtime#1.3.0) \n\n```\nfun Method.asComposableMethod(): ComposableMethod?\n``` \n\n### getDeclaredComposableMethod\n\nArtifact: [androidx.compose.runtime:runtime](/jetpack/androidx/releases/compose-runtime) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/reflect/ComposableMethod.jvm.kt+function:getDeclaredComposableMethod) \nAdded in [1.3.0](/jetpack/androidx/releases/compose-runtime#1.3.0) \n\n```\nfun Class\u003c*\u003e.getDeclaredComposableMethod(\n methodName: String,\n vararg args: Class\u003c*\u003e\n): ComposableMethod\n```\n\nFind the given @Composable method by name."]]