语言

DisplayCutout.CutoutPath 属性

定义

返回一个 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。

特性

注解

返回一个 Path 包含显示器上各方的剪切路径。

若要获取一个特定端的剪切路径,应用可以与Path从中获取的路径相交Rect, #getBoundingRectLeft()#getBoundingRectTop()或者。#getBoundingRectRight()#getBoundingRectBottom()

Java文档android.view.DisplayCutout.getCutoutPath()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于