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