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 适配的推送类型 void
saveConfig(Context context, PushConfig pushConfig)
boolean
isFcmCacheValid(Context context)
在用户有配置 FCM 推送的情况下,每 2 小时清空一下缓存 boolean
isNeedReportToken(Context context, PushType pushType, String token)
判断是否需要上传 token -
-
Method Detail
-
getPreferPushType
List<PushType> getPreferPushType(Context context, PushConfig pushConfig)
获取适合的推送类型 根据手机机型和用户 enable 适配的推送类型
-
saveConfig
void saveConfig(Context context, PushConfig pushConfig)
-
isFcmCacheValid
boolean isFcmCacheValid(Context context)
在用户有配置 FCM 推送的情况下,每 2 小时清空一下缓存
-
isNeedReportToken
boolean isNeedReportToken(Context context, PushType pushType, String token)
判断是否需要上传 token
-
-
-
-