Package io.rong.push.pushconfig
Class PushConfigCenter
-
- All Implemented Interfaces:
public class PushConfigCenter
用来进行推送初始化配置的主要管理类
zoulu
-
-
Constructor Summary
Constructors Constructor Description PushConfigCenter()
-
Method Summary
Modifier and Type Method Description List<PushType>
getPreferPushType(Context context, PushConfig pushConfig)
获取适合的推送类型 根据手机机型和用户 enable 适配的推送类型 boolean
isNeedReportToken(Context context, PushType pushType, String token)
判断是否需要上传 token 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)
-
-
Method Detail
-
getPreferPushType
List<PushType> getPreferPushType(Context context, PushConfig pushConfig)
获取适合的推送类型 根据手机机型和用户 enable 适配的推送类型
-
isNeedReportToken
boolean isNeedReportToken(Context context, PushType pushType, String token)
判断是否需要上传 token
-
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)
-
-
-
-