newVirtualViewStructure

Creates a ViewStructure for a "virtual" view, so it can be passed to notifyViewsAppeared by the view managing the virtual view hierarchy. Compatibility behavior:

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

Return

a new ViewStructure that can be used for Content Capture purposes.

Parameters

parentId

id of the virtual view parent (it can be obtained by calling getAutofillId on the parent).

virtualId

id of the virtual child, relative to the parent.