語言

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

定義

透過 resId 設定氣泡膨脹內容的期望高度。

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

參數

heightResId
Int32

int

傳回

這個 Android.App.Notification.BubbleMetadata.Builder 實例,允許通話串接。

屬性

備註

透過 resId 設定氣泡膨脹內容的期望高度。 若螢幕空間不足或提供的高度過小無法使用,則可能無法遵守此高度。

如果之前在這個建構器中呼叫過 setDesiredHeight(int),呼叫此方法後,先前的值集會被清除,並會改用這個值。

期望的高度(以 DP 或透過 resID 可選)。

另請參閱:

Android 參考資料。android.app.Notification.BubbleMetadata.Builder.setDesiredHeightResId

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

適用於