語言

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.WearableExtender 實例,允許通話串連。

屬性

備註

設定此通知內容顯示的自訂高度(像素單位)。 此選項僅適用於使用 setDisplayIntent(PendingIntent) 建立的自訂顯示通知。 另見 setCustomSizePreset(int) 和 getCustomContentHeight()。

Android 參考資料。android.app.Notification.WearableExtender.setCustomContentHeight

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

適用於