接口 EaseNotifier.EaseNotificationInfoProvider
-
- 封闭类:
- EaseNotifier
public static interface EaseNotifier.EaseNotificationInfoProvider
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.lang.StringgetDisplayedText(io.agora.chat.ChatMessage message)set the notification content, such as "you received a new image from xxx"java.lang.StringgetLatestText(io.agora.chat.ChatMessage message, int fromUsersNum, int messageNum)set the notification content: such as "you received 5 message from 2 contacts"android.content.IntentgetLaunchIntent(io.agora.chat.ChatMessage message)set the intent when notification is pressedintgetSmallIcon(io.agora.chat.ChatMessage message)set the small iconjava.lang.StringgetTitle(io.agora.chat.ChatMessage message)设置notification标题
-
-
-
方法详细资料
-
getDisplayedText
java.lang.String getDisplayedText(io.agora.chat.ChatMessage message)
set the notification content, such as "you received a new image from xxx"- 参数:
message-- 返回:
- null-will use the default text
-
getLatestText
java.lang.String getLatestText(io.agora.chat.ChatMessage message, int fromUsersNum, int messageNum)set the notification content: such as "you received 5 message from 2 contacts"- 参数:
message-fromUsersNum- - number of message sendermessageNum- -number of messages- 返回:
- null-will use the default text
-
getTitle
java.lang.String getTitle(io.agora.chat.ChatMessage message)
设置notification标题- 参数:
message-- 返回:
- null- will use the default text
-
getSmallIcon
int getSmallIcon(io.agora.chat.ChatMessage message)
set the small icon- 参数:
message-- 返回:
- 0- will use the default icon
-
getLaunchIntent
android.content.Intent getLaunchIntent(io.agora.chat.ChatMessage message)
set the intent when notification is pressed- 参数:
message-- 返回:
- null- will use the default icon
-
-