AutofillNode

Class

Common

Deprecated " Use the new semantics-based Autofill APIs androidx.compose.ui.autofill.ContentType and androidx.compose.ui.autofill.ContentDataType instead. "

class AutofillNode(
    val autofillTypes: List<@Suppress("Deprecation") AutofillType> = listOf(),
    var boundingBox: Rect? = null,
    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

Common
val id: Int

Companion Object