語言

Notification.WearableExtender.SetCustomSizePreset(WearableSizePreset) 方法

定義

從 Notification.WearableExtender 中可用的預設中,設定此通知顯示的自訂尺寸預設,例如 SIZE_LARGE。

[Android.Runtime.Register("setCustomSizePreset", "(I)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetCustomSizePreset(Android.App.WearableSizePreset sizePreset);
[<Android.Runtime.Register("setCustomSizePreset", "(I)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetCustomSizePreset : Android.App.WearableSizePreset -> Android.App.Notification.WearableExtender

參數

sizePreset
WearableSizePreset

int

傳回

這個 Android.App.Notification.WearableExtender 實例,允許通話串連。

屬性

備註

從 Notification.WearableExtender 中可用的預設中,設定此通知顯示的自訂尺寸預設,例如 SIZE_LARGE。 部分自訂尺寸預設僅適用於使用 setDisplayIntent(PendingIntent)建立的自訂顯示通知。 請查閱相關預設的說明文件。 另見 setCustomContentHeight(int) 和 getCustomSizePreset()。

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

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

適用於