public class NotificationConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NotificationConfig.ForegroundOtherPageAction
在前台非会话页面,接受到消息时的行为
|
static interface |
NotificationConfig.Interceptor |
static class |
NotificationConfig.TitleType
通知标题的类型
|
Constructor and Description |
---|
NotificationConfig() |
Modifier and Type | Method and Description |
---|---|
NotificationConfig.ForegroundOtherPageAction |
getForegroundOtherPageAction() |
NotificationConfig.Interceptor |
getInterceptor() |
android.app.NotificationChannel |
getNotificationChannel() |
NotificationConfig.TitleType |
getTitleType() |
void |
setForegroundOtherPageAction(NotificationConfig.ForegroundOtherPageAction action) |
void |
setInterceptor(DefaultInterceptor interceptor)
本地通知拦截器
|
void |
setInterceptor(NotificationConfig.Interceptor interceptor)
Deprecated.
|
void |
setNotificationChannel(android.app.NotificationChannel channel) |
void |
setTitleType(NotificationConfig.TitleType type) |
public android.app.NotificationChannel getNotificationChannel()
public void setNotificationChannel(android.app.NotificationChannel channel)
public NotificationConfig.Interceptor getInterceptor()
@Deprecated public void setInterceptor(NotificationConfig.Interceptor interceptor)
interceptor
- 通知拦截器public void setInterceptor(DefaultInterceptor interceptor)
interceptor
- 默认的抽象类实现,用户可以继承 DefaultInterceptor,复写方法,进行拦截处理public NotificationConfig.TitleType getTitleType()
public void setTitleType(NotificationConfig.TitleType type)
public NotificationConfig.ForegroundOtherPageAction getForegroundOtherPageAction()
public void setForegroundOtherPageAction(NotificationConfig.ForegroundOtherPageAction action)