🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

AutofillNode

Every autofill-able composable will have an AutofillNode.

Source set: Common
@Deprecated(
    """
        Use the new semantics-based Autofill APIs androidx.compose.ui.autofill.ContentType and
        androidx.compose.ui.autofill.ContentDataType instead.
        """
)
public class AutofillNode(
    public val autofillTypes: List<@Suppress("Deprecation") AutofillType> = listOf(),
    public var boundingBox: Rect? = null,
    public val onFill: ((String) -> Unit)?,
)

Every autofill-able composable will have an AutofillNode. (An autofill node will be created for every semantics node that adds autofill properties). This node is used to request/cancel autofill, and it holds the onFill lambda which is called by the autofill framework.

Properties

id

Source set: Common
public val id: Int = generateSemanticsId()