public abstract class NotificationHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTH_REQUEST_NOTIFICATION_ID |
static int |
CHAT_NOTIFICATION_ID |
protected android.content.Context |
context |
static String |
DEFAULT_NOTIFICATION_URI |
static int |
ERROR_NOTIFICATION_ID |
static int |
FILE_TRANSFER_NOTIFICATION_ID |
static int |
NOTIFICATION_ID |
protected android.app.NotificationManager |
notificationManager |
protected static String |
TAG |
| Modifier | Constructor and Description |
|---|---|
protected |
NotificationHelper(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelChatNotification(String tag) |
void |
cancelFileTransferRequestNotification(String tag) |
void |
cancelNotification() |
static android.content.Intent |
createFileTransferAcceptIntent(android.content.Context context,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.BareJID account,
String tag) |
protected android.app.PendingIntent |
createFileTransferProgressPendingIntent(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
FileTransferFeature.State state) |
static android.content.Intent |
createFileTransferRejectIntent(android.content.Context context,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.BareJID account,
String tag) |
protected android.app.PendingIntent |
createFileTransferRequestPendingIntent(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
String tag) |
static NotificationHelper |
createIntstance(android.content.Context context) |
android.app.Notification |
getForegroundNotification(int ico,
String notiticationTitle,
String expandedNotificationText) |
void |
notificationUpdateFail(tigase.jaxmpp.core.client.SessionObject account,
String message,
String notificationMessage,
Throwable cause) |
void |
notifyFileTransferProgress(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
FileTransferFeature.State state) |
void |
notifyFileTransferRequest(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft) |
void |
notifyNewChatMessage(tigase.jaxmpp.core.client.xmpp.modules.chat.MessageModule.MessageEvent event) |
void |
notifyNewMucMessage(tigase.jaxmpp.core.client.xmpp.modules.muc.MucModule.MucEvent event) |
void |
notifySubscribeRequest(tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceModule.PresenceEvent be) |
protected abstract android.app.Notification |
prepareChatNotification(int ico,
String title,
String text,
android.app.PendingIntent pendingIntent,
tigase.jaxmpp.core.client.xmpp.modules.chat.MessageModule.MessageEvent event) |
protected abstract android.app.Notification |
prepareChatNotification(int ico,
String title,
String text,
android.app.PendingIntent pendingIntent,
tigase.jaxmpp.core.client.xmpp.modules.muc.MucModule.MucEvent event) |
protected abstract android.app.Notification |
prepareFileTransferProgressNotification(int ico,
String title,
String text,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
FileTransferFeature.State state) |
protected abstract android.app.Notification |
prepareFileTransferRequestNotification(int ico,
String title,
String text,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
String tag) |
void |
showMucError(String room,
android.content.Intent intent) |
void |
showWarning(String id,
String message,
android.content.Intent intent) |
protected void |
updateLight(android.app.Notification notification,
String lightKey) |
protected void |
updateSound(android.app.Notification notification,
String soundKey) |
protected void |
updateVibrate(android.app.Notification notification,
String vibrateKey) |
public static final int AUTH_REQUEST_NOTIFICATION_ID
public static final int CHAT_NOTIFICATION_ID
public static final String DEFAULT_NOTIFICATION_URI
public static final int ERROR_NOTIFICATION_ID
public static final int FILE_TRANSFER_NOTIFICATION_ID
public static final int NOTIFICATION_ID
protected static final String TAG
protected final android.content.Context context
protected final android.app.NotificationManager notificationManager
public static android.content.Intent createFileTransferAcceptIntent(android.content.Context context,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.BareJID account,
String tag)
public static android.content.Intent createFileTransferRejectIntent(android.content.Context context,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.BareJID account,
String tag)
public static NotificationHelper createIntstance(android.content.Context context)
public void cancelChatNotification(String tag)
public void cancelFileTransferRequestNotification(String tag)
public void cancelNotification()
protected android.app.PendingIntent createFileTransferProgressPendingIntent(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
FileTransferFeature.State state)
protected android.app.PendingIntent createFileTransferRequestPendingIntent(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
String tag)
public android.app.Notification getForegroundNotification(int ico,
String notiticationTitle,
String expandedNotificationText)
public void notificationUpdateFail(tigase.jaxmpp.core.client.SessionObject account,
String message,
String notificationMessage,
Throwable cause)
public void notifyFileTransferProgress(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
FileTransferFeature.State state)
public void notifyFileTransferRequest(tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft)
public void notifyNewChatMessage(tigase.jaxmpp.core.client.xmpp.modules.chat.MessageModule.MessageEvent event)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic void notifyNewMucMessage(tigase.jaxmpp.core.client.xmpp.modules.muc.MucModule.MucEvent event)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic void notifySubscribeRequest(tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceModule.PresenceEvent be)
protected abstract android.app.Notification prepareChatNotification(int ico,
String title,
String text,
android.app.PendingIntent pendingIntent,
tigase.jaxmpp.core.client.xmpp.modules.chat.MessageModule.MessageEvent event)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionprotected abstract android.app.Notification prepareChatNotification(int ico,
String title,
String text,
android.app.PendingIntent pendingIntent,
tigase.jaxmpp.core.client.xmpp.modules.muc.MucModule.MucEvent event)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionprotected abstract android.app.Notification prepareFileTransferProgressNotification(int ico,
String title,
String text,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
FileTransferFeature.State state)
protected abstract android.app.Notification prepareFileTransferRequestNotification(int ico,
String title,
String text,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft,
tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
String tag)
public void showMucError(String room, android.content.Intent intent)
protected void updateLight(android.app.Notification notification,
String lightKey)
protected void updateSound(android.app.Notification notification,
String soundKey)
protected void updateVibrate(android.app.Notification notification,
String vibrateKey)
Copyright © 2016. All rights reserved.