Language

Notification.WearableExtender.SetGravity(GravityFlags) Method

Definition

Set the gravity that this notification should have within the available viewport space.

[Android.Runtime.Register("setGravity", "(I)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetGravity(Android.Views.GravityFlags gravity);
[<Android.Runtime.Register("setGravity", "(I)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetGravity : Android.Views.GravityFlags -> Android.App.Notification.WearableExtender

Parameters

gravity
GravityFlags

int

Returns

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

Attributes

Remarks

Set the gravity that this notification should have within the available viewport space. Supported values include Gravity.TOP, Gravity.CENTER_VERTICAL and Gravity.BOTTOM. The default value is Gravity.BOTTOM.

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

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