public class IMNotification
extends BaseAdvice
| Constructor and Description |
|---|
IMNotification(Pointcut pointcut) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppName()
获取通知栏显示Title
|
android.content.Intent |
getCustomNotificationIntent(android.content.Intent intent,
YWConversation conversation,
YWMessage message,
int totalUnReadCount) |
android.content.Intent |
getCustomNotificationIntent(YWConversation conversation,
YWMessage message,
int totalUnReadCount)
收到消息时的自定义通知栏点击Intent
|
int |
getNotificationIconResID()
获取通知栏图标Icon
|
int |
getNotificationSoundResId()
返回自定义提示音资源Id
|
String |
getNotificationTips(YWConversation conversation,
YWMessage message,
int totalUnReadCount)
Deprecated.
|
CharSequence |
getNotificationTips(YWConversation conversation,
YWMessage message,
int totalUnReadCount,
IMSmilyCache smilyCache) |
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 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 android.content.Intent getCustomNotificationIntent(YWConversation conversation, YWMessage message, int totalUnReadCount)
conversation - 收到消息的会话message - 收到的消息totalUnReadCount - 会话中消息未读数public android.content.Intent getCustomNotificationIntent(android.content.Intent intent,
YWConversation conversation,
YWMessage message,
int totalUnReadCount)
public int getNotificationIconResID()
public String getAppName()
public int getNotificationSoundResId()
public String getTicker(YWConversation conversation, YWMessage message, int totalUnReadCount)
conversation - 收到消息的会话message - 收到的消息totalUnReadCount - 会话中消息未读数public CharSequence getNotificationTips(YWConversation conversation, YWMessage message, int totalUnReadCount, IMSmilyCache smilyCache)
conversation - 该消息所在会话message - 收到的新消息totalUnReadCount - 总的未读数smilyCache - 表情管理器