語言

WindowInsets.SystemGestureInsets 屬性

定義

此方法在 API 等級 30 中被棄用。 改用 getInsets(int) 搭配 Type.systemGestures() 代替。

public Android.Graphics.Insets SystemGestureInsets { [Android.Runtime.Register("getSystemGestureInsets", "()Landroid/graphics/Insets;", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getSystemGestureInsets", "()Landroid/graphics/Insets;", "", ApiSince=29)>]
member this.SystemGestureInsets : Android.Graphics.Insets

屬性值

屬性

備註

回傳系統手勢輸入。

系統手勢內嵌代表視窗中系統手勢優先權的區域,這些區域可能會消耗部分或全部觸控輸入,例如因為系統列佔用該視窗,或是僅保留給觸控手勢。

應用程式可以宣告系統手勢的優先權,且在 之外。View#setSystemGestureExclusionRects#getMandatorySystemGestureInsets() mandatory system gesture insets

注意:系統會對排除範圍的垂直範圍設限 200dp 。 當導航列隱藏View#SYSTEM_UI_FLAG_IMMERSIVE_STICKY stickily時,限制不適用,且不適用於android.inputmethodservice.InputMethodService input methodIntent#CATEGORY_HOME home activity與。

只要在系統手勢介面之外 #getTappableElementInsets() system window insets,簡單的點擊也能保證能到達視窗。

當 View#SYSTEM_UI_FLAG_LAYOUT_STABLE 請求時,即使系統手勢因 或 View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN而非啟用View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION,插入也會被回傳。

這個嵌入與 一起#getSystemWindowInsets() system window insets被 吞噬#consumeSystemWindowInsets()。

此會員已被棄用。 改用 #getInsets(int) 搭配 Type#systemGestures()。

Java 文件 android.view.WindowInsets.getSystemGestureInsets()。

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

適用於