Notification.Action Constructors
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.
Overloads
| Name | Description |
|---|---|
| Notification.Action(IntPtr, JniHandleOwnership) |
Initializes a managed representation of an existing Java Native Interface object. |
| Notification.Action(Int32, ICharSequence, PendingIntent) |
This constructor is deprecated. |
| Notification.Action(Int32, String, PendingIntent) |
This constructor is deprecated. |
Notification.Action(IntPtr, JniHandleOwnership)
Initializes a managed representation of an existing Java Native Interface object.
protected Action(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Notification.Action : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Notification.Action
Parameters
- javaReference
-
IntPtr
nativeint
The Java Native Interface object reference.
- transfer
- JniHandleOwnership
The ownership transfer to apply to the Java Native Interface object reference.
Remarks
This constructor is called by the .NET for Android binding runtime when it creates a managed peer for an existing Java object.
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
Notification.Action(Int32, ICharSequence, PendingIntent)
This constructor is deprecated.
[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V", "")]
public Action(int icon, Java.Lang.ICharSequence? title, Android.App.PendingIntent? intent);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V", "")>]
new Android.App.Notification.Action : int * Java.Lang.ICharSequence * Android.App.PendingIntent -> Android.App.Notification.Action
Parameters
- icon
- Int32
int
- title
- ICharSequence
CharSequence
- intent
- PendingIntent
PendingIntent: This value may be null.
- Attributes
Remarks
This constructor is deprecated. Use Notification.Action.Builder.
Android reference for android.app.Notification.Action.Action.
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
Notification.Action(Int32, String, PendingIntent)
This constructor is deprecated.
[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V", "")]
public Action(int icon, string? title, Android.App.PendingIntent? intent);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V", "")>]
new Android.App.Notification.Action : int * string * Android.App.PendingIntent -> Android.App.Notification.Action
Parameters
- icon
- Int32
int
- title
- String
CharSequence
- intent
- PendingIntent
PendingIntent: This value may be null.
- Attributes
Remarks
This constructor is deprecated. Use Notification.Action.Builder.
Android reference for android.app.Notification.Action.Action.
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.