A listener that provides events in
Notify when badge count (unread count for a guest) has been changed
void onChangeBadge(int count)
Notify when a guest profile has been changed. The parameter provides both profile key and its value. This method can be used when you want to sync updated guest data into your database.
|key||a profile key|
|value||a profile value|
void onChangeProfile(String key, @Nullable Object value);
Notify when a link within a message is clicked. Return true if you want to handle an URL, otherwise false for default behavior. If this method is not implemented or return false, ChannelIO treats it as a normal URL link and attempts to open in WebView.
|url||String||A url that was clicked|
boolean onClickChatLink(String url)
Notify when a guest gets notification from Channel. Parameter
event contains the necessary information to display in-app push view. This method is useful when you want to customize the in-app push view.
|pushEvent||PushEvent||a event contains in-app push information|
void onReceivePush(PushEvent pushEvent)
Notify when channel plugin's user chat list is about to dismiss from view.
Notify when channel plugin's user chat list is about to present in view.
Updated over 1 year ago