Notification.WearableExtender.SetContentAction(Int32) 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 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.