语言

Notification.WearableExtender.SetCustomContentHeight(Int32) 方法

定义

设置此通知内容的显示自定义高度(以像素为单位)。

[Android.Runtime.Register("setCustomContentHeight", "(I)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetCustomContentHeight(int height);
[<Android.Runtime.Register("setCustomContentHeight", "(I)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetCustomContentHeight : int -> Android.App.Notification.WearableExtender

参数

height
Int32

int

返回

此 Android.App.Notification.可穿戴Extender 实例,允许链接调用。

特性

注解

设置此通知内容的显示自定义高度(以像素为单位)。 此选项仅适用于使用 setDisplayIntent(PendingIntent)创建的自定义显示通知。 另请参阅 setCustomSizePreset(int) 和 getCustomContentHeight()。

Android 参考。android.app.Notification.WearableExtender.setCustomContentHeight

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

适用于