语言

ContentCaptureSession.Version1 字段

定义

注意

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

内容捕获版本 1。

[Android.Runtime.Register("VERSION_1", 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 Version1 = 1;
[<Android.Runtime.Register("VERSION_1", 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 Version1 : Android.Views.ContentCaptures.ContentCaptureSessionVersion

字段值

Value = 1
特性

注解

内容捕获版本 1。

第一个内容捕获版本是一个信息丰富的基于事件的系统,它尝试通过定期事件转储(例如 flush()将当前视图层次结构从应用程序进程传输到系统智能服务。 但是,由于系统生成的大量事件,此系统也可能资源繁重。

当 getContentCaptureVersion 返回此版本时,开发人员应使用版本 1 API 通知视图层次结构的系统更改。 为版本 1 配置会话时调用版本 2 API 将导致无操作。

显式属于内容捕获版本 1 的函数列表:notifyViewAppeared(ViewStructure);notifyViewDisappeared(AutofillId):notifyViewsAppeared(List);notifyViewsDisappeared(AutofillId,long[]):notifyViewTextChanged(AutofillId,CharSequence):flush();newViewStructure(视图);newVirtualViewStructure(AutofillId,long)

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

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

适用于