Freigeben über


Notification.Builder.AddAction Method

Definition

Overloads

AddAction(Notification+Action)

Add an action to this notification.

AddAction(Int32, ICharSequence, PendingIntent)

Add an action (with a corresponding title and intent) to this notification.

AddAction(Int32, String, PendingIntent)

Add an action (with a corresponding title and intent) to this notification.

AddAction(Notification+Action)

Add an action to this notification.

[Android.Runtime.Register("addAction", "(Landroid/app/Notification$Action;)Landroid/app/Notification$Builder;", "GetAddAction_Landroid_app_Notification_Action_Handler")]
public virtual Android.App.Notification.Builder AddAction (Android.App.Notification.Action? action);
[<Android.Runtime.Register("addAction", "(Landroid/app/Notification$Action;)Landroid/app/Notification$Builder;", "GetAddAction_Landroid_app_Notification_Action_Handler")>]
abstract member AddAction : Android.App.Notification.Action -> Android.App.Notification.Builder
override this.AddAction : Android.App.Notification.Action -> Android.App.Notification.Builder

Parameters

action
Notification.Action

The action to add.

Returns

Attributes

Remarks

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

AddAction(Int32, ICharSequence, PendingIntent)

Add an action (with a corresponding title and intent) to this notification.

[Android.Runtime.Register("addAction", "(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;", "GetAddAction_ILjava_lang_CharSequence_Landroid_app_PendingIntent_Handler")]
public virtual Android.App.Notification.Builder? AddAction (int icon, Java.Lang.ICharSequence? title, Android.App.PendingIntent? intent);
[<Android.Runtime.Register("addAction", "(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;", "GetAddAction_ILjava_lang_CharSequence_Landroid_app_PendingIntent_Handler")>]
abstract member AddAction : int * Java.Lang.ICharSequence * Android.App.PendingIntent -> Android.App.Notification.Builder
override this.AddAction : int * Java.Lang.ICharSequence * Android.App.PendingIntent -> Android.App.Notification.Builder

Parameters

icon
Int32

Resource ID of a drawable that represents the action.

title
ICharSequence

Text describing the action.

intent
PendingIntent

PendingIntent to be fired when the action is invoked.

Returns

Attributes

Remarks

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

AddAction(Int32, String, PendingIntent)

Add an action (with a corresponding title and intent) to this notification.

public Android.App.Notification.Builder? AddAction (int icon, string? title, Android.App.PendingIntent? intent);
member this.AddAction : int * string * Android.App.PendingIntent -> Android.App.Notification.Builder

Parameters

icon
Int32

Resource ID of a drawable that represents the action.

title
String

Text describing the action.

intent
PendingIntent

PendingIntent to be fired when the action is invoked.

Returns

Remarks

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