Package io.rong.imkit.notification

## Class NotificationConfig

- All Implemented Interfaces:

      public class NotificationConfig

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public enum` | `NotificationConfig.TitleType` | 通知标题的类型
    `public enum` | `NotificationConfig.ForegroundOtherPageAction` | 在前台非会话页面，接受到消息时的行为
    `public interface` | `NotificationConfig.Interceptor` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public String` | `categoryNotification` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `NotificationConfig()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getCategoryNotification()` |
    `void` | `setCategoryNotification(String categoryNotification)` | 设置本地通知 category 初始化之后设置
    `NotificationChannel` | `getNotificationChannel()` |
    `void` | `setNotificationChannel(NotificationChannel channel)` |
    `NotificationConfig.Interceptor` | `getInterceptor()` |
    `void` | `setInterceptor(NotificationConfig.Interceptor interceptor)` | 本地通知拦截器
    `void` | `setInterceptor(DefaultInterceptor interceptor)` | 本地通知拦截器
    `NotificationConfig.TitleType` | `getTitleType()` |
    `void` | `setTitleType(NotificationConfig.TitleType type)` |
    `NotificationConfig.ForegroundOtherPageAction` | `getForegroundOtherPageAction()` |
    `void` | `setForegroundOtherPageAction(NotificationConfig.ForegroundOtherPageAction action)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NotificationConfig

          NotificationConfig()

  - ### 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)