语言

Notification.WearableExtender.CustomContentHeight 属性

定义

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

public int CustomContentHeight { [Android.Runtime.Register("getCustomContentHeight", "()I", "")] get; }
[<get: Android.Runtime.Register("getCustomContentHeight", "()I", "")>]
member this.CustomContentHeight : int

属性值

特性

注解

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

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

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

适用于