Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

AutofillTree

class AutofillTree
kotlin.Any
   ↳ androidx.ui.autofill.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

The autofill tree is a temporary data structure that is used before the Semantics Tree is implemented.

Public methods
Unit?
performAutofill(id: Int, value: String)

The autofill framework uses this function to 'fill' the AutofillNode represented by id with the specified value.

operator Unit
plusAssign(autofillNode: AutofillNode)

Add the specified AutofillNode to the AutofillTree.

Properties
MutableMap<Int, AutofillNode>

A map which contains AutofillNodes, where every node represents an autofillable field.

Public constructors

<init>

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

Public methods

performAutofill

fun performAutofill(
    id: Int,
    value: String
): Unit?

The autofill framework uses this function to 'fill' the AutofillNode represented by id with the specified value.

plusAssign

operator fun plusAssign(autofillNode: AutofillNode): Unit

Add the specified AutofillNode to the AutofillTree.

Properties

children

val children: MutableMap<Int, AutofillNode>

A map which contains AutofillNodes, where every node represents an autofillable field.