語言

AccessibilityNodeInfo.LiveRegion 屬性

定義

取得節點的即時區域模式。 -或- 設定節點的即時區域模式。

public virtual Android.Views.AccessibilityLiveRegion LiveRegion { [Android.Runtime.Register("getLiveRegion", "()I", "GetGetLiveRegionHandler")] get; [Android.Runtime.Register("setLiveRegion", "(I)V", "GetSetLiveRegion_IHandler")] set; }
[<get: Android.Runtime.Register("getLiveRegion", "()I", "GetGetLiveRegionHandler")>]
[<set: Android.Runtime.Register("setLiveRegion", "(I)V", "GetSetLiveRegion_IHandler")>]
member this.LiveRegion : Android.Views.AccessibilityLiveRegion with get, set

屬性值

即時區域模式,或者 View#ACCESSIBILITY_LIVE_REGION_NONE 如果視角不是即時區域。

屬性

備註

財產取得者文件:

取得節點的即時區域模式。

活躍區域是一個包含對使用者重要資訊的節點,當資訊變更時,應通知使用者。 例如,顯示確認通知的 Snackbar 應標記為 Mode View#ACCESSIBILITY_LIVE_REGION_POLITE的 Live 區域。

無障礙服務負責監控 AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED 顯示活躍區域節點及其子節點變動的事件。

Java 文件 android.view.accessibility.AccessibilityNodeInfo.getLiveRegion()。

屬性設定文件:

設定節點的即時區域模式。

<strong>注意:</strong> 不能從 android.accessibilityservice.AccessibilityService. 此類別在交付給無障礙服務前會被設定為不可變。

Java 文件 android.view.accessibility.AccessibilityNodeInfo.setLiveRegion(int)。

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

適用於

另請參閱