ComposableMethod

class ComposableMethod


Represents the @Composable method.

Summary

Public functions

Method

Returns the backing Method.

open operator Boolean
equals(other: Any?)
open Int
operator Any?
invoke(composer: Composer, instance: Any?, vararg args: Any?)

Calls the Composable method on the given instance.

Public properties

Int

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

Array<Class<*>>

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

Array<Parameter>

Returns method parameters excluding the utility Compose-specific parameters.

Public functions

asMethod

Added in 1.3.0
fun asMethod(): Method

Returns the backing Method.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

invoke

Added in 1.3.0
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.

Public properties

parameterCount

Added in 1.3.0
val parameterCountInt

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

parameterTypes

Added in 1.4.0
val parameterTypesArray<Class<*>>

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

parameters

Added in 1.3.0
val parametersArray<Parameter>

Returns method parameters excluding the utility Compose-specific parameters.