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) Retrieves the corresponding handler based on the push type
      static void setPushProcessor(PushType pushType, IPush processor) Sets the handler for the specified push notification type.
      • 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)

        Retrieves the corresponding handler based on the push type

        Parameters:
        pushType - The type of push notification
        Returns:

        The push notification handler

      • setPushProcessor

         static void setPushProcessor(PushType pushType, IPush processor)

        Sets the handler for the specified push notification type. This is typically used to customize the handling of third-party push notifications, such as resolving conflicts with JPush or Getui.

        This method must be called before initialization and only in the main process.

        Parameters:
        pushType - The type of push notification.
        processor - The custom handler.