Udostępnij za pośrednictwem


Notification.WearableExtender.ContentAction Property

Definition

Get the index of the notification action, if any, that was specified as the primary action.

public int ContentAction { [Android.Runtime.Register("getContentAction", "()I", "")] get; }
[<get: Android.Runtime.Register("getContentAction", "()I", "")>]
member this.ContentAction : int

Property Value

the action index or #UNSET_ACTION_INDEX if no action was selected.

Attributes

Remarks

Get the index of the notification action, if any, that was specified as the primary action.

If wearable specific actions were added to the main notification, this index will apply to that list, otherwise it will apply to the regular actions list.

Java documentation for android.app.Notification.WearableExtender.getContentAction().

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