hyphenate_SDK3.0 3.7.6.3
hyphenate java IM SDK
|
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) |
Created by wei on 2016/12/7.
Offline push message manager class that used for GCM and APNS
void com.hyphenate.chat.EMPushManager.asyncUpdatePushDisplayStyle | ( | DisplayStyle | style, |
EMCallBack | callback | ||
) |
update push message style, default is DisplayStyle#SimpleBanner
style | push message style |
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
nickname |
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)
start | start hour |
end | end hour |
HyphenateException |
void com.hyphenate.chat.EMPushManager.enableOfflinePush | ( | ) | throws HyphenateException |
enable offline message push
HyphenateException |
List< String > com.hyphenate.chat.EMPushManager.getNoPushGroups | ( | ) |
get the group list that disabled offline push
EMPushConfigs com.hyphenate.chat.EMPushManager.getPushConfigs | ( | ) |
get push configs from cache
EMPushConfigs com.hyphenate.chat.EMPushManager.getPushConfigsFromServer | ( | ) | throws HyphenateException |
get push configs from server
HyphenateException |
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
style | push message style |
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
nickname |
void com.hyphenate.chat.EMPushManager.updatePushServiceForGroup | ( | List< String > | groupIds, |
boolean | noPush | ||
) | throws HyphenateException |
Sets whether the specified group accepts offline message push
groupIds | the list of groups to be set |
noPush | true:not accept offline push, false:accept offline push |
HyphenateException |