Language

Notification.Action.Builder.SetSemanticAction(SemanticAction) Method

Definition

Sets the SemanticAction for this Action.

[Android.Runtime.Register("setSemanticAction", "(I)Landroid/app/Notification$Action$Builder;", "", ApiSince=28)]
public Android.App.Notification.Action.Builder SetSemanticAction(Android.App.SemanticAction semanticAction);
[<Android.Runtime.Register("setSemanticAction", "(I)Landroid/app/Notification$Action$Builder;", "", ApiSince=28)>]
member this.SetSemanticAction : Android.App.SemanticAction -> Android.App.Notification.Action.Builder

Parameters

semanticAction
SemanticAction

int: a SemanticAction defined within Action with SEMANTIC_ACTION_ prefixes. Value is one of the following: None Reply MarkAsRead MarkAsUnread Delete Archive Mute Unmute ThumbsUp ThumbsDown Call Play Pause Stop

Returns

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

Attributes

Remarks

Sets the SemanticAction for this Action. A SemanticAction denotes what an Action's PendingIntent will do (eg. reply, mark as read, delete, etc).

Android reference for android.app.Notification.Action.Builder.setSemanticAction.

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