AutofillTree
-
Cmn
class AutofillTree
The autofill tree is a temporary data structure that is used before the Semantics Tree is implemented. This data structure is used by compose components to set autofill hints (via AutofillNodes). It is also used by the autofill framework to communicate with Compose components (by calling performAutofill).
The AutofillTree will be replaced by Autofill Semantics (b/138604305).
Since this is a temporary implementation, it is implemented as a list of children, which is essentially a tree of height = 1
Summary
Public constructors |
|
|---|---|
|
This function is deprecated. Use the new semantics-based Autofill APIs androidx.compose.ui.autofill.ContentType and androidx.compose.ui.autofill.ContentDataType instead. |
Cmn
|
Public functions |
||
|---|---|---|
Unit? |
This function is deprecated. Use the new semantics-based Autofill APIs androidx.compose.ui.autofill.ContentType and androidx.compose.ui.autofill.ContentDataType instead. |
Cmn
|
operator Unit |
This function is deprecated. Use the new semantics-based Autofill APIs androidx.compose.ui.autofill.ContentType and androidx.compose.ui.autofill.ContentDataType instead. |
Cmn
|
Public properties |
||
|---|---|---|
MutableMap<Int, AutofillNode> |
This property is deprecated. Use the new semantics-based Autofill APIs androidx.compose.ui.autofill.ContentType and androidx.compose.ui.autofill.ContentDataType instead. |
Cmn
|
Public constructors
Public functions
performAutofill
funperformAutofill(id: Int, value: String): Unit?
The autofill framework uses this function to 'fill' the AutofillNode represented by id with the specified value.
plusAssign
operator funplusAssign(autofillNode: AutofillNode): Unit
Add the specified AutofillNode to the AutofillTree.
Public properties
children
val children: MutableMap<Int, AutofillNode>
A map which contains AutofillNodes, where every node represents an autofill-able field.