語言

DisplayCutout.CutoutPath 屬性

定義

回傳包含顯示器各側切斷路徑的 a Path 。

public Android.Graphics.Path? CutoutPath { [Android.Runtime.Register("getCutoutPath", "()Landroid/graphics/Path;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getCutoutPath", "()Landroid/graphics/Path;", "", ApiSince=31)>]
member this.CutoutPath : Android.Graphics.Path

屬性值

a Path 包含所有根據顯示座標的切割路徑。 如果顯示器上沒有切斷,則回傳 null。

屬性

備註

回傳包含顯示器各側切斷路徑的 a Path 。

為了取得特定一側的切斷路徑,應用程式可以與從 、 、 或 取得的 相交PathRect。#getBoundingRectLeft()#getBoundingRectTop()#getBoundingRectRight()#getBoundingRectBottom()

的 android.view.DisplayCutout.getCutoutPath()Java 檔。

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

適用於