Language

Notification.WearableExtender.SetContentAction(Int32) Method

Definition

Set an action from this notification's actions as the primary action.

[Android.Runtime.Register("setContentAction", "(I)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetContentAction(int actionIndex);
[<Android.Runtime.Register("setContentAction", "(I)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetContentAction : int -> Android.App.Notification.WearableExtender

Parameters

actionIndex
Int32

int: the index of the primary action. If wearable actions were added to the main notification, this index will apply to that list, otherwise it will apply to the regular actions list.

Returns

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

Attributes

Remarks

Set an action from this notification's actions as the primary action. If the action has a RemoteInput associated with it, shortcuts to the options for that input are shown directly on the notification.

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

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