Class

ComposableMethod

Represents the @Composable method.

Source set: JvmAndAndroid
public class ComposableMethod internal constructor(private val method: Method, private val composableInfo: ComposableInfo)

Represents the @Composable method.

Properties

parameterCount

Source set: JvmAndAndroid
public val parameterCount: Int

Returns the count of method parameters excluding the utility Compose-specific parameters.

parameters

Source set: JvmAndAndroid
public val parameters: Array<Parameter>

Returns method parameters excluding the utility Compose-specific parameters.

parameterTypes

Source set: JvmAndAndroid
public val parameterTypes: Array<Class<*>>

Returns method parameters types excluding the utility Compose-specific parameters.

Functions

asMethod

Source set: JvmAndAndroid
public fun asMethod(): Method

Returns the backing Method.

invoke

Source set: JvmAndAndroid
public operator fun invoke(composer: Composer, instance: Any?, vararg args: Any?): Any?

Calls the Composable method on the given instance. If the method accepts default values, this function will call it with the correct options set.

equals

Source set: JvmAndAndroid
override fun equals(other: Any?): Boolean

hashCode

Source set: JvmAndAndroid
override fun hashCode(): Int
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: