UserEventHandler class

Represents a class to notify user event.

This is base class that you can mixin, so that you can register on SendbirdSdk.addUserEventHandler. Typically you want to use this class as following:

class MyHandler with UserEventHandler {
  @override
  void onUpdateTotalUnreadMessageCount(int totalCount, Map<String, num> customTypesCount) {
     // user logic when total unread message count is updated
  }
}
Implemented types

Constructors

UserEventHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFriendsDiscovered(List<User> friends) → void
Not supporting TBD
onTotalUnreadMessageCountUpdated(int totalCount, Map<String, num> customTypesCount) → void
Informs total unread message count has been changed
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited