Package org.matrix.android.sdk.api.session

Types

Link copied to clipboard
interface EventStreamService
Link copied to clipboard
interface LiveEventListener
Link copied to clipboard
interface Session

This interface defines interactions with a session. An instance of a session will be provided by the SDK.

Link copied to clipboard
interface SessionLifecycleObserver

This defines methods associated with some lifecycle events of a session.

Link copied to clipboard
interface ToDeviceService

Functions

Link copied to clipboard
fun Session.getRoom(roomId: String): Room?

Get a room using the RoomService of a Session.

Link copied to clipboard
fun Session.getRoomSummary(roomIdOrAlias: String): RoomSummary?

Get a room summary using the RoomService of a Session.

Link copied to clipboard
fun Session.getUser(userId: String): User?

Get a user using the UserService of a Session.

Link copied to clipboard
fun Session?.getUserOrDefault(userId: String): User

Similar to getUser, but fallback to a User without details if the User is not known by the SDK, or if Session is null.