语言

ContentCaptureSession.Version2 字段

定义

注意

This constant will be removed in the future version. Use Android.Views.ContentCaptures.ContentCaptureSessionVersion enum directly instead of this field.

内容捕获版本 2。

[Android.Runtime.Register("VERSION_2", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.ContentCaptures.ContentCaptureSessionVersion enum directly instead of this field.", true)]
public const Android.Views.ContentCaptures.ContentCaptureSessionVersion Version2 = 2;
[<Android.Runtime.Register("VERSION_2", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.ContentCaptures.ContentCaptureSessionVersion enum directly instead of this field.", true)>]
val mutable Version2 : Android.Views.ContentCaptures.ContentCaptureSessionVersion

字段值

Value = 2
特性

注解

内容捕获版本 2。

第二个和更新的内容捕获采用更集中、更精简的方法,将视图层次结构从应用程序传递到系统智能服务。 所需的信息主要限于屏幕上的文本和这些文本节点的边界框。 此版本的内容捕获在资源使用方面也显著提高了效率,建议将其用作各种系统智能服务使用的默认版本。

当 getContentCaptureVersion 返回此版本时,开发人员应使用版本 2 API 来报告节点生命周期和属性更新。 为版本 2 配置会话时调用版本 1 API 将导致无操作。

显式属于内容捕获版本 2 的函数列表:notifyNodeAppearedOrChanged(AutofillId,ContentCaptureNodeProperties):notifyNodeDisappeared(AutofillId)

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

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

适用于