Room Service
This interface defines methods to get rooms. It's implemented at the session level.
Functions
Create a direct room asynchronously. This is a facility method to create a direct room with the necessary parameters.
Create a room locally. This room will not be synchronized with the server and will not come back from the sync, so all the events related to this room will be generated locally.
Create a room asynchronously.
Delete a local room with all its related events.
Delete a room alias.
Get a snapshot list of Breadcrumbs.
Get a live list of Breadcrumbs.
Return the current local changes membership for the given room. see getChangeMembershipsLive for more details.
Return a live data of all local changes membership that happened since the session has been opened. It allows you to track this in your client to known what is currently being processed by the SDK. It won't know anything about change being done in other client. Keys are roomId or roomAlias, depending of what you used as parameter for the join/leave action
Return the roomId of an existing DM with the other user, or null if such room does not exist. A room is a DM if:
Get's a live paged list from a filter that can be dynamically updated.
Returns all the children of this space, as LiveData.
A live LocalRoomSummary associated with the room with id roomId. You can observe this summary to get dynamic data from this room, even if the room is not joined yet
TODO Doc.
TODO Doc.
Return a LiveData on the number of rooms.
Resolve a room alias to a room ID.
Get a room member for the tuple {userId,roomId}.
Observe a live room member for the tuple {userId,roomId}.
Get some state events about a room.
Get a snapshot list of room summaries.
Get a live list of room summaries. This list is refreshed as soon as the data changes.
Get a roomSummary from a roomId or a room alias.
A live RoomSummary associated with the room with id roomId. You can observe this summary to get dynamic data from this room, even if the room is not joined yet
Mark all rooms as read.
Inform the Matrix SDK that a room is displayed. The SDK will update the breadcrumbs in the user account data
Use this if you want to get information from a room that you are not yet in (or invited). It might be possible to get some information on this room if it is public or if guest access is allowed. This call will try to gather some information on this room, but it could fail and get nothing more.
Refreshes the RoomSummary LatestPreviewContent for the given @param roomId. If the roomId is null, all rooms are updated.
Only notifies when this query has changes. It doesn't load any items in memory