Notification Notification Constructors

Definition

Overloads

Notification()

Constructs a Notification object with default values.

Notification(Parcel) Notification(Parcel)

Unflatten the notification from a parcel.

Notification(Int32, ICharSequence) Notification(Int32, ICharSequence)

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

Notification(Int32, String) Notification(Int32, String)

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

Notification(IntPtr, JniHandleOwnership) Notification(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Notification(Int32, ICharSequence, Int64) Notification(Int32, ICharSequence, Int64)

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

Notification(Int32, String, Int64) Notification(Int32, String, Int64)

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

Notification()

Constructs a Notification object with default values.

[Android.Runtime.Register(".ctor", "()V", "")]
public Notification ();

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.

Notification(Parcel) Notification(Parcel)

Unflatten the notification from a parcel.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public Notification (Android.OS.Parcel parcel);
new Android.App.Notification : Android.OS.Parcel -> Android.App.Notification

Parameters

parcel
Parcel Parcel

The Parcel containing notification information.

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.

Notification(Int32, ICharSequence) Notification(Int32, ICharSequence)

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

public Notification (int icon, Java.Lang.ICharSequence tickerText);
new Android.App.Notification : int * Java.Lang.ICharSequence -> Android.App.Notification

Parameters

icon
Int32 Int32

The resource id of the icon to put in the status bar.

tickerText
ICharSequence ICharSequence

The text that flows by in the status bar when the notification first activates.

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.

Notification(Int32, String) Notification(Int32, String)

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

public Notification (int icon, string tickerText);
new Android.App.Notification : int * string -> Android.App.Notification

Parameters

icon
Int32 Int32

The resource id of the icon to put in the status bar.

tickerText
String String

The text that flows by in the status bar when the notification first activates.

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.

Notification(IntPtr, JniHandleOwnership) Notification(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Notification (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Notification : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Notification

Parameters

javaReference
IntPtr IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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.

Notification(Int32, ICharSequence, Int64) Notification(Int32, ICharSequence, Int64)

Warning

This API is now obsolete.

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;J)V", "")]
[System.Obsolete("deprecated")]
public Notification (int icon, Java.Lang.ICharSequence tickerText, long when);
new Android.App.Notification : int * Java.Lang.ICharSequence * int64 -> Android.App.Notification

Parameters

icon
Int32 Int32

The resource id of the icon to put in the status bar.

tickerText
ICharSequence ICharSequence

The text that flows by in the status bar when the notification first activates.

when
Int64 Int64

The time to show in the time field, in the System.currentTimeMillis timebase.

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.

Notification(Int32, String, Int64) Notification(Int32, String, Int64)

Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;J)V", "")]
public Notification (int icon, string tickerText, long when);
new Android.App.Notification : int * string * int64 -> Android.App.Notification

Parameters

icon
Int32 Int32

The resource id of the icon to put in the status bar.

tickerText
String String

The text that flows by in the status bar when the notification first activates.

when
Int64 Int64

The time to show in the time field, in the System.currentTimeMillis timebase.

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