Taal

ContentCaptureSession.ContentCaptureVersion Property

Definition

Gets the Content Capture version enabled for this session.

public abstract Android.Views.ContentCaptures.ContentCaptureSessionVersion ContentCaptureVersion { [Android.Runtime.Register("getContentCaptureVersion", "()I", "GetGetContentCaptureVersionHandler", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getContentCaptureVersion", "()I", "GetGetContentCaptureVersionHandler", ApiSince=37)>]
member this.ContentCaptureVersion : Android.Views.ContentCaptures.ContentCaptureSessionVersion

Property Value

the enabled version, either VERSION_1 or VERSION_2. Calls to Version 1 methods become no-ops if the returned version is not VERSION_1, and calls to Version 2 methods become no-ops if the returned version is not VERSION_2. Value is one of the following: VERSION_1; VERSION_2

Attributes

Remarks

Gets the Content Capture version enabled for this session.

ContentCaptureSession offers two versions: VERSION_1 (legacy event-based capture using ViewStructure) and VERSION_2 (leaner, buffer-backed capture focused on text and bounding boxes).

The returned version is decided by the system intelligence service that coordinates this ContentCaptureSession.

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

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