The Developer Preview for Android 11 is now available; test it out and share your feedback.

AutofillTree

class AutofillTree
kotlin.Any
   ↳ androidx.ui.autofill.AutofillTree

The autofill tree.

This is used temporarily until we have a semantic tree implemented (b/138604305). This implementation is a tree of height = 1, and we don't use the root node right now, so this is essentially a group of leaf nodes.

Summary

Public constructors

The autofill tree.

Public methods

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

operator Unit
plusAssign(autofillNode: AutofillNode)

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

MutableMap<Int, AutofillNode>

Public constructors

<init>

AutofillTree()

The autofill tree.

This is used temporarily until we have a semantic tree implemented (b/138604305). This implementation is a tree of height = 1, and we don't use the root node right now, so this is essentially a group of leaf nodes.

Public methods

performAutofill

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

plusAssign

operator fun plusAssign(autofillNode: AutofillNode): Unit

Properties

children

val children: MutableMap<Int, AutofillNode>