The Developer Preview for Android 11 is now available; test it out and share your feedback.

UnionType

@Target([AnnotationTarget.TYPE, AnnotationTarget.TYPE_PARAMETER]) annotation class UnionType
androidx.compose.UnionType

Summary

Public constructors

<init>(vararg types: KClass<*>)

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

vararg Array<out KClass<*>>

Public constructors

<init>

UnionType(vararg types: KClass<*>)

Properties

types

vararg val types: Array<out KClass<*>>