Package io.rong.imkit.notification
Class NotificationConfig
-
- All Implemented Interfaces:
public class NotificationConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumNotificationConfig.TitleType通知标题的类型
public enumNotificationConfig.ForegroundOtherPageAction在前台非会话页面,接受到消息时的行为
public interfaceNotificationConfig.Interceptor
-
Field Summary
Fields Modifier and Type Field Description public StringcategoryNotification
-
Constructor Summary
Constructors Constructor Description NotificationConfig()
-
Method Summary
Modifier and Type Method Description StringgetCategoryNotification()voidsetCategoryNotification(String categoryNotification)设置本地通知 category 初始化之后设置 NotificationChannelgetNotificationChannel()voidsetNotificationChannel(NotificationChannel channel)NotificationConfig.InterceptorgetInterceptor()voidsetInterceptor(NotificationConfig.Interceptor interceptor)本地通知拦截器 voidsetInterceptor(DefaultInterceptor interceptor)本地通知拦截器 NotificationConfig.TitleTypegetTitleType()voidsetTitleType(NotificationConfig.TitleType type)NotificationConfig.ForegroundOtherPageActiongetForegroundOtherPageAction()voidsetForegroundOtherPageAction(NotificationConfig.ForegroundOtherPageAction action)-
-
Method Detail
-
getCategoryNotification
String getCategoryNotification()
-
setCategoryNotification
void setCategoryNotification(String categoryNotification)
设置本地通知 category 初始化之后设置
-
getNotificationChannel
NotificationChannel getNotificationChannel()
-
setNotificationChannel
void setNotificationChannel(NotificationChannel channel)
-
getInterceptor
NotificationConfig.Interceptor getInterceptor()
-
setInterceptor
@Deprecated() void setInterceptor(NotificationConfig.Interceptor interceptor)
本地通知拦截器
- Parameters:
interceptor- 通知拦截器 @Deprecated 5.1.
-
setInterceptor
void setInterceptor(DefaultInterceptor interceptor)
本地通知拦截器
- Parameters:
interceptor- 默认的抽象类实现,用户可以继承 DefaultInterceptor,复写方法,进行拦截处理
-
getTitleType
NotificationConfig.TitleType getTitleType()
-
setTitleType
void setTitleType(NotificationConfig.TitleType type)
-
getForegroundOtherPageAction
NotificationConfig.ForegroundOtherPageAction getForegroundOtherPageAction()
-
setForegroundOtherPageAction
void setForegroundOtherPageAction(NotificationConfig.ForegroundOtherPageAction action)
-
-
-
-