Package io.rong.push.pushconfig

## Class PushFactory

- All Implemented Interfaces:

      public class PushFactory

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static IPush` | `getPushProcessorByType(PushType pushType)` | 根据推送类型获取对应的处理器
    `static void` | `setPushProcessor(PushType pushType, IPush processor)` | 设置指定推送的处理器，一般用于自定义处理第三方推送，以便解决和极光个推等的冲突问题。 此方法需要在 init 之前, 仅在主进程调用

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

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

- - ### Constructor Detail

    - #### PushFactory

          PushFactory()

  - ### Method Detail

    - #### getPushProcessorByType

           static IPush getPushProcessorByType(PushType pushType)

      根据推送类型获取对应的处理器

      Parameters:
        `pushType` - 推送类型
      Returns:

        推送处理器

    - #### setPushProcessor

           static void setPushProcessor(PushType pushType, IPush processor)

      设置指定推送的处理器，一般用于自定义处理第三方推送，以便解决和极光个推等的冲突问题。

      此方法需要在 init 之前, 仅在主进程调用

      Parameters:
        `pushType` - 推送类型
        `processor` - 自定义处理器