Notification.WearableExtender.SetGravity(GravityFlags) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.