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()
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: