hyphenate_SDK3.0
3.8.6.1
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 |
void | updatePushServiceForUsers (List< String > userIds, boolean noPush) throws HyphenateException |
List< String > | getNoPushGroups () |
List< String > | getNoPushUsers () |
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) |
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 Synchronization method see updatePushDisplayStyle(DisplayStyle)
Asynchronously method
style | Push message style |
void com.hyphenate.chat.EMPushManager.asyncUpdatePushNickname | ( | String | nickname, |
EMCallBack | callback | ||
) |
Update the push nickname of current user This method can be used to set a push nickname, the push nickname will be used to show for offline push When the user changes the nickname(use or EMUserInfoManager#updateOwnInfoByAttribute(EMUserInfo.EMUserInfoType, String, EMValueCallBack) to set}, be sure to also call this method to update to prevent the display of differences
Synchronization method see updatePushNickname(String)
Asynchronously method
nickname | Push nickname, which are different from nickname in user properties |
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)
Synchronization method will block the current thread
start | start hour |
end | end hour |
HyphenateException |
void com.hyphenate.chat.EMPushManager.enableOfflinePush | ( | ) | throws HyphenateException |
Enable offline message push
Synchronization method will block the current thread
HyphenateException |
List<String> com.hyphenate.chat.EMPushManager.getNoPushGroups | ( | ) |
Get the group list that disabled offline push
Synchronization method will block the current thread
List<String> com.hyphenate.chat.EMPushManager.getNoPushUsers | ( | ) |
get the users list that disabled offline push from the cache,If the user needs to get the latest data, he can call {@Link EmpushManager# getPushConfigsFromServer()} before calling this method
EMPushConfigs com.hyphenate.chat.EMPushManager.getPushConfigs | ( | ) |
Get push configs from cache
EMPushConfigs com.hyphenate.chat.EMPushManager.getPushConfigsFromServer | ( | ) | throws HyphenateException |
Get push configs from server
Synchronization method will block the current thread
HyphenateException |
void com.hyphenate.chat.EMPushManager.updatePushDisplayStyle | ( | DisplayStyle | style | ) | throws IllegalArgumentException, HyphenateException |
Update push message style, default is DisplayStyle#SimpleBanner Asynchronously method see asyncUpdatePushDisplayStyle(DisplayStyle, EMCallBack)
Synchronization method will block the current thread
style | Push message style |
boolean com.hyphenate.chat.EMPushManager.updatePushNickname | ( | String | nickname | ) | throws IllegalArgumentException, HyphenateException |
Update the push nickname of current user This method can be used to set a push nickname, the push nickname will be used to show for offline push When the user changes the nickname(use or EMUserInfoManager#updateOwnInfoByAttribute(EMUserInfo.EMUserInfoType, String, EMValueCallBack) to set}, be sure to also call this method to update to prevent the display of differences
Asynchronously method see asyncUpdatePushNickname(String, EMCallBack)
Synchronization method will block the current thread
nickname | Push nickname, which are different from nickname in user properties |
void com.hyphenate.chat.EMPushManager.updatePushServiceForGroup | ( | List< String > | groupIds, |
boolean | noPush | ||
) | throws HyphenateException |
Sets whether the specified group accepts offline message push
Synchronization method will block the current thread
groupIds | The list of groups to be set |
noPush | True:not accept offline push, false:accept offline push |
HyphenateException |
void com.hyphenate.chat.EMPushManager.updatePushServiceForUsers | ( | List< String > | userIds, |
boolean | noPush | ||
) | throws HyphenateException |
Sets whether the specified group accepts offline message push
userIds | the list of users to be set |
noPush | true:not accept offline push, false:accept offline push |
HyphenateException |