Unreads class
This object can notify you when the amount of unread conversations changes. You can't instantiate it - instead, get an instance via {@link Session.unreads}.
- Annotations
-
- @JS()
- @anonymous
Constructors
- Unreads()
-
factory
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
-
off(
String eventType, Function handler) → void -
Call this with the same
eventType
andhandler
that you used foron
to stop receiving events. -
on(
String eventType, Function handler) → void -
A "change" event is fired on startup right after TalkJS loads, as well as every time the
amount of unread conversations changed. The
handler
is invoked with an array of objects with limited information about each conversation, see {@link UnreadConversation}. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited