ContentCaptureSession.NewVirtualViewStructure(AutofillId, Int64) Method

Definition

Creates a ViewStructure for a "virtual" view, so it can be passed to #notifyViewAppeared(ViewStructure) by the view managing the virtual view hierarchy.

[Android.Runtime.Register("newVirtualViewStructure", "(Landroid/view/autofill/AutofillId;J)Landroid/view/ViewStructure;", "", ApiSince=29)]
public Android.Views.ViewStructure NewVirtualViewStructure (Android.Views.Autofill.AutofillId parentId, long virtualId);
[<Android.Runtime.Register("newVirtualViewStructure", "(Landroid/view/autofill/AutofillId;J)Landroid/view/ViewStructure;", "", ApiSince=29)>]
member this.NewVirtualViewStructure : Android.Views.Autofill.AutofillId * int64 -> Android.Views.ViewStructure

Parameters

parentId
AutofillId

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

virtualId
Int64

id of the virtual child, relative to the parent.

Returns

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

Attributes

Remarks

Creates a ViewStructure for a "virtual" view, so it can be passed to #notifyViewAppeared(ViewStructure) by the view managing the virtual view hierarchy.

Java documentation for android.view.contentcapture.ContentCaptureSession.newVirtualViewStructure(android.view.autofill.AutofillId, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to