语言

Notification.BubbleMetadata.Builder.SetDesiredHeight(Int32) 方法

定义

为气泡的扩展内容设置所需的 DP 高度。

[Android.Runtime.Register("setDesiredHeight", "(I)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetDesiredHeight(int height);
[<Android.Runtime.Register("setDesiredHeight", "(I)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetDesiredHeight : int -> Android.App.Notification.BubbleMetadata.Builder

参数

height
Int32

int

返回

此 Android.App.Notification.BubbleMetadata.Builder 实例允许链接调用。

特性

注解

为气泡的扩展内容设置所需的 DP 高度。 如果屏幕上没有足够的空间,或者提供的高度太小而无法有用,则可能不会尊重此高度。

如果以前在此生成器上调用 setDesiredHeightResId(int),则调用此方法后将清除上一个值集,并将改用此值。

所需的高度(以 DP 或 resID 为单位)是可选的。

Android 参考。android.app.Notification.BubbleMetadata.Builder.setDesiredHeight

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

适用于