notifyViewsDisappeared

open fun notifyViewsDisappeared(@NonNull virtualIds: Array<Long>)(source)

Notifies the Content Capture Service that many nodes has been removed from a virtual view structure.

Should only be called by views that handle their own virtual view hierarchy. Compatibility behavior:

  • SDK 34 and above, this method matches platform behavior.
  • SDK 29 through 33, this method is a best-effort to match platform behavior, by wrapping the virtual children with a pair of special view appeared events.
  • SDK 28 and below, this method does nothing.

Parameters

virtualIds

ids of the virtual children.