Language

Notification.WearableExtender.SetCustomSizePreset(WearableSizePreset) Method

Definition

Set the custom size preset for the display of this notification out of the available presets found in Notification.WearableExtender, e.g.

[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

Parameters

sizePreset
WearableSizePreset

int

Returns

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

Attributes

Remarks

Set the custom size preset for the display of this notification out of the available presets found in Notification.WearableExtender, e.g. SIZE_LARGE. Some custom size presets are only applicable for custom display notifications created using setDisplayIntent(PendingIntent). Check the documentation for the preset in question. See also setCustomContentHeight(int) and getCustomSizePreset().

Android reference for android.app.Notification.WearableExtender.setCustomSizePreset.

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