Notification.BubbleMetadata.Builder.SetDesiredHeight(Int32) Method

Definition

Sets the desired height in DPs for the expanded content of the bubble.

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

Parameters

height
Int32

int

Returns

This Android.App.Notification.BubbleMetadata.Builder instance, allowing calls to be chained.

Attributes

Remarks

Sets the desired height in DPs for the expanded content of the bubble. This height may not be respected if there is not enough space on the screen or if the provided height is too small to be useful.

If setDesiredHeightResId(int) was previously called on this builder, the previous value set will be cleared after calling this method, and this value will be used instead.

A desired height (in DPs or via resID) is optional.

See also:

Android reference for android.app.Notification.BubbleMetadata.Builder.setDesiredHeight.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to