Package io.rong.push.pushconfig
Class PushFactory
-
- All Implemented Interfaces:
public class PushFactory
-
-
Constructor Summary
Constructors Constructor Description PushFactory()
-
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. -
-
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.
-
-
-
-