Class PushConfigCenter

  • All Implemented Interfaces:

    
    public class PushConfigCenter
    
                        

    The primary management class for push notification initialization configuration

    Author:

    zoulu

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<PushType> getPreferPushType(Context context, PushConfig pushConfig) Get the appropriate push notification type based on the device model and user's enabled push notification type
      boolean isNeedReportToken(Context context, PushType pushType, String token) // Determine whether token upload is required
      static String getToken(List<TokenBean> list, PushType type)
      static void updateTokenBean(List<TokenBean> list, PushType type, String token)
      static List<TokenBean> updateTokenBeanReport(List<TokenBean> list, Map<String, String> failMap)
      static boolean containsType(List<TokenBean> list, PushType type)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PushConfigCenter

        PushConfigCenter()
    • Method Detail

      • getPreferPushType

         List<PushType> getPreferPushType(Context context, PushConfig pushConfig)

        Get the appropriate push notification type based on the device model and user's enabled push notification type

      • isNeedReportToken

         boolean isNeedReportToken(Context context, PushType pushType, String token)

        // Determine whether token upload is required

      • getToken

         static String getToken(List<TokenBean> list, PushType type)
      • updateTokenBean

         static void updateTokenBean(List<TokenBean> list, PushType type, String token)
      • updateTokenBeanReport

         static List<TokenBean> updateTokenBeanReport(List<TokenBean> list, Map<String, String> failMap)
      • containsType

         static boolean containsType(List<TokenBean> list, PushType type)