语言

ContentCaptureSession.ContentCaptureVersion 属性

定义

获取为此会话启用的内容捕获版本。

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

属性值

已启用的版本,VERSION_1或VERSION_2。 如果未VERSION_1返回的版本,则对版本 1 方法的调用将变为无操作,如果返回的版本未VERSION_2,则对版本 2 方法的调用将变为 no-ops。 值是下列值之一: Version1Version2

特性

注解

获取为此会话启用的内容捕获版本。

ContentCaptureSession 提供两个版本:VERSION_1(使用 ViewStructure 进行基于事件的旧捕获)和VERSION_2(更精简、缓冲区支持的捕获侧重于文本和边界框)。

返回的版本由协调此 ContentCaptureSession 的系统智能服务决定。

Android 参考。android.view.contentcapture.ContentCaptureSession.getContentCaptureVersion

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于