hyphenate_SDK3.0  3.5.0
hyphenatejavaIMSDK
Public Member Functions | List of all members
com.hyphenate.chat.EMPushManager Class Reference
Collaboration diagram for com.hyphenate.chat.EMPushManager:
Collaboration graph
[legend]

Public Member Functions

void enableOfflinePush () throws HyphenateException
 
void disableOfflinePush (int start, int end) throws HyphenateException
 
EMPushConfigs getPushConfigs ()
 
EMPushConfigs getPushConfigsFromServer () throws HyphenateException
 
void updatePushServiceForGroup (List< String > groupIds, boolean noPush) throws HyphenateException
 
List< String > getNoPushGroups ()
 
boolean updatePushNickname (String nickname)
 

Detailed Description

Created by wei on 2016/12/7.

Offline push message manager class that used for GCM and APNS

Member Function Documentation

void com.hyphenate.chat.EMPushManager.disableOfflinePush ( int  start,
int  end 
) throws HyphenateException

The offline message is not pushed within the specified time period (24-hour clock)

Parameters
startstart hour
endend hour
Exceptions
HyphenateException
void com.hyphenate.chat.EMPushManager.enableOfflinePush ( ) throws HyphenateException

enable offline message push

Exceptions
HyphenateException
List<String> com.hyphenate.chat.EMPushManager.getNoPushGroups ( )

get the group list that disabled offline push

Returns
EMPushConfigs com.hyphenate.chat.EMPushManager.getPushConfigs ( )

get push configs from cache

Returns
EMPushConfigs com.hyphenate.chat.EMPushManager.getPushConfigsFromServer ( ) throws HyphenateException

get push configs from server

Returns
Exceptions
HyphenateException
boolean com.hyphenate.chat.EMPushManager.updatePushNickname ( String  nickname)

This method can be used to set a nickname, the nickname will be used to show for APNS and GCM. When the user changes the nickname, be sure to also call this method to update to the hyphenate server to prevent the display of differences

Parameters
nickname
void com.hyphenate.chat.EMPushManager.updatePushServiceForGroup ( List< String >  groupIds,
boolean  noPush 
) throws HyphenateException

Sets whether the specified group accepts offline message push

Parameters
groupIdsthe list of groups to be set
noPushtrue:not accept offline push, false:accept offline push
Exceptions
HyphenateException

The documentation for this class was generated from the following file: