Język

ContentCaptureSession.NotifyNodeDisappeared(AutofillId) Method

Definition

Removes a node from the active content capture hierarchy.

[Android.Runtime.Register("notifyNodeDisappeared", "(Landroid/view/autofill/AutofillId;)V", "GetNotifyNodeDisappeared_Landroid_view_autofill_AutofillId_Handler", ApiSince=37)]
public abstract void NotifyNodeDisappeared(Android.Views.Autofill.AutofillId id);
[<Android.Runtime.Register("notifyNodeDisappeared", "(Landroid/view/autofill/AutofillId;)V", "GetNotifyNodeDisappeared_Landroid_view_autofill_AutofillId_Handler", ApiSince=37)>]
abstract member NotifyNodeDisappeared : Android.Views.Autofill.AutofillId -> unit

Parameters

id
AutofillId

The AutofillId of the node to delete.

Attributes

Remarks

Removes a node from the active content capture hierarchy.

This is the primary method to report the removal of UI components in Content Capture Version 2. It applies to both standard Views and virtual views, signaling that the node is no longer part of the visible hierarchy.

When a node is deleted: Its internal resources (such as text and content description allocations) are freed; Its children are orphaned and promoted to root nodes (their parent pointer is cleared). If you want to remove an entire subtree, you must recursively call this method for all descendant nodes in the subtree. Re-adding this node will not automatically relink previous children.

Note; This function belongs to Content Capture Version 2.

Call this method on the thread that created the UI element. This is usually the application's main thread.

Android reference for android.view.contentcapture.ContentCaptureSession.notifyNodeDisappeared.

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