Bryan Herbst
01/12/2021, 8:04 PMAmbientAutofillTree
note that Autofill semantics will be replacing some of the existing autofill APIs at some point, but reference an internal issue and the comment itself seems to be over a year old.
Is the plan still to leverage semantics for some of the autofill support?
Ref: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:co[…]compose/ui/platform/Ambients.kt;l=58-65?q=AmbientAutofillTreeBryan Herbst
01/12/2021, 8:06 PMjim
01/13/2021, 9:28 AMRalston Da Silva
01/13/2021, 10:32 PMCustomComponent(
text = text,
modifier = Modifier
.autofillProperties {
autofillDataType = AutofillDataType.Text
autofillType = AutofillType.EmailAddress
}
.onAutofill{ text = it }
)
Ralston Da Silva
01/13/2021, 10:37 PMvar name by remember { mutableStateOf("enter email address here") }
BasicTextField(
text = name,
onValueChanged = { text = it }
modifier = Modifier.autofillProperties {
autofillType = listOf(AutofillType.EmailAddress)
}
)
Ralston Da Silva
01/13/2021, 10:40 PMBryan Herbst
01/14/2021, 2:11 PMBryan Herbst
01/14/2021, 2:12 PMRalston Da Silva
01/19/2021, 6:27 PMFannyDemey
09/20/2022, 8:52 AMDaniele Segato
12/05/2022, 9:06 AM