Language

Notification.WearableExtender.AddActions Method

Definition

Adds wearable actions to this notification.

[Android.Runtime.Register("addActions", "(Ljava/util/List;)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? AddActions(System.Collections.Generic.IList<Android.App.Notification.Action>? actions);
[<Android.Runtime.Register("addActions", "(Ljava/util/List;)Landroid/app/Notification$WearableExtender;", "")>]
member this.AddActions : System.Collections.Generic.IList<Android.App.Notification.Action> -> Android.App.Notification.WearableExtender

Parameters

actions
IList<Notification.Action>

List: the actions to add to this notification

Returns

this object for method chaining

Attributes

Remarks

Adds wearable actions to this notification. When wearable actions are added using this method, the set of actions that show on a wearable device splits from devices that only show actions added using Notification.Builder.addAction(Action). This allows for customization of which actions display on different devices.

See also:

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

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