toggle menu
Android-IMLibCore-SDK
5.6.7
io.rong.push
switch theme
search in API
Android-IMLibCore-SDK
/
io.rong.push.pushconfig
/
PushConfigCenter
Push
Config
Center
io.rong.push
public
class
PushConfigCenter
用来进行推送初始化配置的主要管理类
Author
zoulu
Members
Constructors
Push
Config
Center
Link copied to clipboard
io.rong.push
public
void
PushConfigCenter
(
)
Functions
get
Prefer
Push
Type
Link copied to clipboard
io.rong.push
public
List
<
PushType
>
getPreferPushType
(
Context context
,
PushConfig pushConfig
)
获取适合的推送类型 根据手机机型和用户 enable 适配的推送类型
is
Fcm
Cache
Valid
Link copied to clipboard
io.rong.push
public
boolean
isFcmCacheValid
(
Context context
)
在用户有配置 FCM 推送的情况下,每 2 小时清空一下缓存
is
Need
Report
Token
Link copied to clipboard
io.rong.push
public
boolean
isNeedReportToken
(
Context context
,
PushType pushType
,
String
token
)
判断是否需要上传 token
save
Config
Link copied to clipboard
io.rong.push
public
void
saveConfig
(
Context context
,
PushConfig pushConfig
)