Package ai.nexconn.chatui.notification
Class NotificationConfig
-
- All Implemented Interfaces:
public class NotificationConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumNotificationConfig.TitleTypeNotification title type
public enumNotificationConfig.ForegroundOtherPageActionBehavior when receiving a message while in foreground on a non-conversation page
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)Sets the local notification category (must be set after initialization) NotificationChannelgetNotificationChannel()voidsetNotificationChannel(NotificationChannel channel)NotificationConfig.InterceptorgetInterceptor()voidsetInterceptor(NotificationConfig.Interceptor interceptor)Local notification interceptor voidsetInterceptor(DefaultInterceptor interceptor)Local notification interceptor NotificationConfig.TitleTypegetTitleType()voidsetTitleType(NotificationConfig.TitleType type)NotificationConfig.ForegroundOtherPageActiongetForegroundOtherPageAction()voidsetForegroundOtherPageAction(NotificationConfig.ForegroundOtherPageAction action)-
-
Method Detail
-
getCategoryNotification
String getCategoryNotification()
-
setCategoryNotification
void setCategoryNotification(String categoryNotification)
Sets the local notification category (must be set after initialization)
- Parameters:
categoryNotification- the notification category
-
getNotificationChannel
NotificationChannel getNotificationChannel()
-
setNotificationChannel
void setNotificationChannel(NotificationChannel channel)
-
getInterceptor
NotificationConfig.Interceptor getInterceptor()
-
setInterceptor
@Deprecated() void setInterceptor(NotificationConfig.Interceptor interceptor)
Local notification interceptor
- Parameters:
interceptor- the notification interceptor
-
setInterceptor
void setInterceptor(DefaultInterceptor interceptor)
Local notification interceptor
- Parameters:
interceptor- the default abstract implementation; subclass DefaultInterceptor and override methods to customize interception
-
getTitleType
NotificationConfig.TitleType getTitleType()
-
setTitleType
void setTitleType(NotificationConfig.TitleType type)
-
getForegroundOtherPageAction
NotificationConfig.ForegroundOtherPageAction getForegroundOtherPageAction()
-
setForegroundOtherPageAction
void setForegroundOtherPageAction(NotificationConfig.ForegroundOtherPageAction action)
-
-
-
-