Class Overview
This class is used to update the notification indicator. It will check whether
there are unread messages. If yes, it would show the notification indicator,
otherwise, hide the indicator.
Summary
Nested Classes |
class |
MessagingNotification.OnDeletedReceiver |
|
Public Methods |
static
void
|
blockingUpdateAllNotifications(Context context)
Updates all pending notifications, clearing or updating them as
necessary.
|
static
void
|
blockingUpdateNewMessageIndicator(Context context, boolean isNew, boolean isStatusMessage)
Checks to see if there are any "unseen" messages or delivery
reports.
|
static
void
|
cancelNotification(Context context, int notificationId)
|
static
void
|
init(Context context)
|
static
boolean
|
isFailedToDeliver(Intent intent)
|
static
boolean
|
isFailedToDownload(Intent intent)
|
static
void
|
nonBlockingUpdateNewMessageIndicator(Context context, boolean isNew, boolean isStatusMessage)
Checks to see if there are any "unseen" messages or delivery
reports.
|
static
void
|
notifyDownloadFailed(Context context, long threadId)
|
static
void
|
notifySendFailed(Context context)
|
static
void
|
notifySendFailed(Context context, boolean noisy)
|
static
void
|
updateDownloadFailedNotification(Context context)
|
static
void
|
updateSendFailedNotification(Context context)
|
static
void
|
updateSendFailedNotificationForThread(Context context, long threadId)
If all the undelivered messages belong to "threadId", cancel the notification.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
DOWNLOAD_FAILED_NOTIFICATION_ID
Constant Value:
531
(0x00000213)
public
static
final
int
MESSAGE_FAILED_NOTIFICATION_ID
Constant Value:
789
(0x00000315)
Public Methods
public
static
void
blockingUpdateAllNotifications
(Context context)
Updates all pending notifications, clearing or updating them as
necessary.
public
static
void
blockingUpdateNewMessageIndicator
(Context context, boolean isNew, boolean isStatusMessage)
Checks to see if there are any "unseen" messages or delivery
reports. Shows the most recent notification if there is one.
Parameters
context
| the context to use |
isNew
| if notify a new message comes, it should be true, otherwise, false.
|
public
static
void
cancelNotification
(Context context, int notificationId)
public
static
void
init
(Context context)
public
static
boolean
isFailedToDeliver
(Intent intent)
public
static
boolean
isFailedToDownload
(Intent intent)
public
static
void
nonBlockingUpdateNewMessageIndicator
(Context context, boolean isNew, boolean isStatusMessage)
Checks to see if there are any "unseen" messages or delivery
reports. Shows the most recent notification if there is one.
Does its work and query in a worker thread.
Parameters
context
| the context to use
|
public
static
void
notifyDownloadFailed
(Context context, long threadId)
public
static
void
notifySendFailed
(Context context)
public
static
void
notifySendFailed
(Context context, boolean noisy)
public
static
void
updateDownloadFailedNotification
(Context context)
public
static
void
updateSendFailedNotification
(Context context)
public
static
void
updateSendFailedNotificationForThread
(Context context, long threadId)
If all the undelivered messages belong to "threadId", cancel the notification.
Protected Methods