hyphenate_SDK3.0 3.7.6.3
hyphenate java IM SDK
Classes | Public Member Functions | List of all members
com.hyphenate.chat.EMPushManager Class Reference

Classes

enum  DisplayStyle
 

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) throws IllegalArgumentException, HyphenateException
 
void asyncUpdatePushNickname (String nickname, EMCallBack callback)
 
void updatePushDisplayStyle (DisplayStyle style) throws IllegalArgumentException, HyphenateException
 
void asyncUpdatePushDisplayStyle (DisplayStyle style, EMCallBack callback)
 

Detailed Description

Created by wei on 2016/12/7.

Offline push message manager class that used for GCM and APNS

Member Function Documentation

◆ asyncUpdatePushDisplayStyle()

void com.hyphenate.chat.EMPushManager.asyncUpdatePushDisplayStyle ( DisplayStyle  style,
EMCallBack  callback 
)

update push message style, default is DisplayStyle#SimpleBanner

Parameters
stylepush message style

◆ asyncUpdatePushNickname()

void com.hyphenate.chat.EMPushManager.asyncUpdatePushNickname ( String  nickname,
EMCallBack  callback 
)

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

◆ disableOfflinePush()

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

◆ enableOfflinePush()

void com.hyphenate.chat.EMPushManager.enableOfflinePush ( ) throws HyphenateException

enable offline message push

Exceptions
HyphenateException

◆ getNoPushGroups()

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

get the group list that disabled offline push

Returns

◆ getPushConfigs()

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

get push configs from cache

Returns

◆ getPushConfigsFromServer()

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

get push configs from server

Returns
Exceptions
HyphenateException

◆ updatePushDisplayStyle()

void com.hyphenate.chat.EMPushManager.updatePushDisplayStyle ( DisplayStyle  style) throws IllegalArgumentException, HyphenateException

update push message style, default is DisplayStyle#SimpleBanner

Synchronization method will block the current thread

Parameters
stylepush message style

◆ updatePushNickname()

boolean com.hyphenate.chat.EMPushManager.updatePushNickname ( String  nickname) throws IllegalArgumentException, HyphenateException

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

Synchronization method will block the current thread

Parameters
nickname

◆ updatePushServiceForGroup()

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: