newAutofillId

open fun newAutofillId(virtualChildId: Long): AutofillId(source)

Creates a new AutofillId for a virtual child, so it can be used to uniquely identify the children in the session. Compatibility behavior:

  • SDK 29 and above, this method matches platform behavior.
  • SDK 28 and below, this method returns null.

Return

AutofillId for the virtual child

Parameters

virtualChildId

id of the virtual child, relative to the parent.