public class IMNotification
extends BaseAdvice
| Constructor and Description |
|---|
IMNotification(Pointcut pointcut) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAppName()
获取通知栏显示Title
|
Intent |
getCustomNotificationIntent(Intent intent,
YWConversation conversation,
YWMessage message,
int totalUnReadCount) |
Intent |
getCustomNotificationIntent(YWConversation conversation,
YWMessage message,
int totalUnReadCount)
收到消息时的自定义通知栏点击Intent
|
int |
getNotificationIconResID()
获取通知栏图标Icon
|
int |
getNotificationSoundResId()
返回自定义提示音资源Id
|
java.lang.String |
getNotificationTips(YWConversation conversation,
YWMessage message,
int totalUnReadCount)
Deprecated.
|
java.lang.CharSequence |
getNotificationTips(YWConversation conversation,
YWMessage message,
int totalUnReadCount,
IMSmilyCache smilyCache) |
java.lang.String |
getTicker(YWConversation conversation,
YWMessage message,
int totalUnReadCount)
自定义通知栏ticker
|
boolean |
needQuiet(YWConversation conversation,
YWMessage message)
是否开启免打扰模式,若开启免打扰模式则收到新消息时不发送通知栏提醒,只在会话列表页面显示未读数
|
boolean |
needSound(YWConversation conversation,
YWMessage message)
收到通知栏消息时是否有声音提醒
|
boolean |
needVibrator(YWConversation conversation,
YWMessage message)
收到通知栏消息时是否震动提醒
|
public java.lang.String getNotificationTips(YWConversation conversation, YWMessage message, int totalUnReadCount)
getNotificationTips(YWConversation, YWMessage, int, IMSmilyCache)conversation - 当前消息所在会话message - 收到的新消息totalUnReadCount - 当前登录用户的总未读数public boolean needQuiet(YWConversation conversation, YWMessage message)
conversation - 收到的新消息所在会话message - 收到的新消息public boolean needVibrator(YWConversation conversation, YWMessage message)
conversation - 收到的新消息所在会话message - 收到的新消息public boolean needSound(YWConversation conversation, YWMessage message)
conversation - 收到的新消息所在会话message - 收到的新消息public Intent getCustomNotificationIntent(YWConversation conversation, YWMessage message, int totalUnReadCount)
conversation - 收到消息的会话message - 收到的消息totalUnReadCount - 会话中消息未读数public Intent getCustomNotificationIntent(Intent intent,
YWConversation conversation,
YWMessage message,
int totalUnReadCount)
public int getNotificationIconResID()
public java.lang.String getAppName()
public int getNotificationSoundResId()
public java.lang.String getTicker(YWConversation conversation, YWMessage message, int totalUnReadCount)
conversation - 收到消息的会话message - 收到的消息totalUnReadCount - 会话中消息未读数public java.lang.CharSequence getNotificationTips(YWConversation conversation, YWMessage message, int totalUnReadCount, IMSmilyCache smilyCache)
conversation - 该消息所在会话message - 收到的新消息totalUnReadCount - 总的未读数smilyCache - 表情管理器