Language

StatusBarNotification Constructors

Definition

Overloads

Name Description
StatusBarNotification(Parcel)

Reads a notification record from a parcel.

StatusBarNotification(IntPtr, JniHandleOwnership)

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

StatusBarNotification(String, String, Int32, String, Int32, Int32, Int32, Notification, UserHandle, Int64)

This member is deprecated.

StatusBarNotification(Parcel)

Reads a notification record from a parcel.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public StatusBarNotification(Android.OS.Parcel? in);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Service.Notification.StatusBarNotification : Android.OS.Parcel -> Android.Service.Notification.StatusBarNotification

Parameters

in
Parcel

The parcel from which to read the notification record.

Attributes

Remarks

Java documentation for android.service.notification.StatusBarNotification.StatusBarNotification(java.lang.String, java.lang.String, int, java.lang.String, int, int, int, android.app.Notification, android.os.UserHandle, long).

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

StatusBarNotification(IntPtr, JniHandleOwnership)

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

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

Parameters

javaReference
IntPtr

nativeint

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

transfer
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.

Applies to

StatusBarNotification(String, String, Int32, String, Int32, Int32, Int32, Notification, UserHandle, Int64)

This member is deprecated.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;IIILandroid/app/Notification;Landroid/os/UserHandle;J)V", "")]
public StatusBarNotification(string? pkg, string? opPkg, int id, string? tag, int uid, int initialPid, int score, Android.App.Notification? notification, Android.OS.UserHandle? user, long postTime);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;IIILandroid/app/Notification;Landroid/os/UserHandle;J)V", "")>]
new Android.Service.Notification.StatusBarNotification : string * string * int * string * int * int * int * Android.App.Notification * Android.OS.UserHandle * int64 -> Android.Service.Notification.StatusBarNotification

Parameters

pkg
String

The package that owns the notification.

opPkg
String

The package that posted the notification, which can differ from the owning package.

id
Int32

The notification identifier stored in the record.

tag
String

The notification tag, or null if no tag was supplied.

uid
Int32

The UID of the app that owns the notification.

initialPid
Int32

The process ID stored for the posting process.

score
Int32

An unused value retained by this deprecated constructor.

notification
Notification

The notification to store in the record.

user
UserHandle

The user for whom the notification is intended.

postTime
Int64

The posting time in milliseconds since the Unix epoch.

Attributes

Remarks

This member is deprecated. Non-system apps should not need to create StatusBarNotifications.

Java documentation for android.service.notification.StatusBarNotification.StatusBarNotification(java.lang.String, java.lang.String, int, java.lang.String, int, int, int, android.app.Notification, android.os.UserHandle, long).

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