Inbox class
An inbox is a view on the rooms the user has access to; it maintains a list of rooms ordered by recency of their latest message.
List of events
error
→ Fired when there is a problem establishing connection to the server. The attached event listeners are called with an ErrorEvent instance.ready
→ Fired at most once, when the connection to the server is first established. The attached event listeners are called with an InboxReadyEvent instance.updated
→ Fired when any of the inbox items changes. The attached event listeners are called with an InboxUpdatedEvent instance.
Constructors
- Inbox(Connector _connector, int _userId)
- Do not create instances directly — use Kabelwerk.openInbox instead.
Properties
Methods
-
connect(
) → Future< PushResponse> - Establishes connection to the server.
-
disconnect(
) → void - Closes the connection to the server.
-
loadMore(
) → Future< List< InboxItem> > - Loads more inbox items.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off(
[String? event, String? reference]) → void - Removes one or more previously attached event listeners.
-
on(
String event, Function function) → String - Attaches an event listener.
-
once(
String event, Function function) → String - Attaches a one-time event listener.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited