public class V2TIMOfflinePushManagerImpl extends V2TIMOfflinePushManager
限定符和类型 | 方法和说明 |
---|---|
void |
doBackground(int unreadCount,
V2TIMCallback callback)
APP 检测到应用退后台时可以调用此接口,可以用作桌面应用角标的初始化未读数量。
|
void |
doForeground(V2TIMCallback callback)
APP 检测到应用进前台时可以调用此接口
- 从5.0.1版本开始,对应 doBackground,会停止厂商的离线推送。
|
void |
setOfflinePushConfig(V2TIMOfflinePushConfig config,
V2TIMCallback callback)
设置离线推送配置信息
|
public void setOfflinePushConfig(V2TIMOfflinePushConfig config, V2TIMCallback callback)
V2TIMOfflinePushManager
setOfflinePushConfig
在类中 V2TIMOfflinePushManager
config
- 离线推送配置callback
- 回调public void doBackground(int unreadCount, V2TIMCallback callback)
V2TIMOfflinePushManager
doBackground
在类中 V2TIMOfflinePushManager
unreadCount
- 未读数量callback
- 回调public void doForeground(V2TIMCallback callback)
V2TIMOfflinePushManager
doForeground
在类中 V2TIMOfflinePushManager
callback
- 回调