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)
V2TIMOfflinePushManagersetOfflinePushConfig 在类中 V2TIMOfflinePushManagerconfig - 离线推送配置callback - 回调public void doBackground(int unreadCount,
V2TIMCallback callback)
V2TIMOfflinePushManagerdoBackground 在类中 V2TIMOfflinePushManagerunreadCount - 未读数量callback - 回调public void doForeground(V2TIMCallback callback)
V2TIMOfflinePushManagerdoForeground 在类中 V2TIMOfflinePushManagercallback - 回调