java.lang.Object | |
↳ | android.service.notification.StatusBarNotification |
Class encapsulating a Notification. Sent by the NotificationManagerService to clients including
the status bar and any NotificationListenerService
s.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns a copy of this
Object .
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
A key that indicates the group with which this message ranks.
| |||||||||||
The id supplied to
notify(int, Notification) .
| |||||||||||
A unique instance key for this notification record.
| |||||||||||
The
Notification supplied to
notify(int, Notification) .
| |||||||||||
The package of the app that posted the notification.
| |||||||||||
The time (in
currentTimeMillis() time) the notification was posted,
which may be different than when .
| |||||||||||
The tag supplied to
notify(int, Notification) ,
or null if no tag was specified.
| |||||||||||
The
UserHandle for whom this notification is intended.
| |||||||||||
This method was deprecated
in API level 21.
Use
getUser() instead.
| |||||||||||
Convenience method to check the notification's flags for
either
FLAG_ONGOING_EVENT or
FLAG_NO_CLEAR .
| |||||||||||
Convenience method to check the notification's flags for
FLAG_ONGOING_EVENT .
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Creates and returns a copy of this Object
. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
A key that indicates the group with which this message ranks.
The Notification
supplied to
notify(int, Notification)
.
The package of the app that posted the notification.
The time (in currentTimeMillis()
time) the notification was posted,
which may be different than when
.
The tag supplied to notify(int, Notification)
,
or null if no tag was specified.
The UserHandle
for whom this notification is intended.
This method was deprecated
in API level 21.
Use getUser()
instead.
Returns a userHandle for the instance of the app that posted this notification.
Convenience method to check the notification's flags for
either FLAG_ONGOING_EVENT
or
FLAG_NO_CLEAR
.
Convenience method to check the notification's flags for
FLAG_ONGOING_EVENT
.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
out | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|