語言

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(View);newVirtualViewStructure(AutofillId,long)

Android 參考資料。android.view.contentcapture.ContentCaptureSession.VERSION_1

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於