ContentCaptureSessionCompat

Helper for accessing features in ContentCaptureSession.

Functions

Link copied to clipboard
@Nullable
open fun newAutofillId(virtualChildId: Long): @Nullable AutofillId
Creates a new AutofillId for a virtual child, so it can be used to uniquely identify the children in the session.
Link copied to clipboard
@Nullable
open fun newVirtualViewStructure(@NonNull parentId: @NonNull AutofillId, virtualId: Long): @Nullable ViewStructureCompat
Creates a ViewStructure for a "virtual" view, so it can be passed to notifyViewsAppeared by the view managing the virtual view hierarchy.
Link copied to clipboard
open fun notifyViewsAppeared(@NonNull appearedNodes: @NonNull List<ViewStructure>)
Notifies the Content Capture Service that a list of nodes has appeared in the view structure.
Link copied to clipboard
open fun notifyViewsDisappeared(virtualIds: @NonNull Array<Long>)
Notifies the Content Capture Service that many nodes has been removed from a virtual view structure.
Link copied to clipboard
open fun notifyViewTextChanged(@NonNull id: @NonNull AutofillId, @Nullable text: @Nullable CharSequence)
Notifies the Intelligence Service that the value of a text node has been changed.
Link copied to clipboard
@RequiresApi(value = 29)
@NonNull
open fun toContentCaptureSession(): @NonNull ContentCaptureSession
Provides the ContentCaptureSession represented by this object.
Link copied to clipboard
@RequiresApi(value = 29)
@NonNull
open fun toContentCaptureSessionCompat(@NonNull contentCaptureSession: @NonNull ContentCaptureSession, @NonNull host: @NonNull View): @NonNull ContentCaptureSessionCompat
Provides a backward-compatible wrapper for ContentCaptureSession.