Package-level declarations

Types

Link copied to clipboard
typealias AfterSyncResponseSubscriber = suspend (Sync.Response) -> Unit
Link copied to clipboard
Link copied to clipboard
object ConvertMediaPlugin : HttpClientPlugin<Unit, Unit>
Link copied to clipboard
typealias DeviceListsSubscriber = suspend (Sync.Response.DeviceLists?) -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface KeysApiClient
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class MatrixClientServerApiClientImpl(baseUrl: Url? = null, onLogout: suspend (isSoft: Boolean) -> Unit = {}, val eventContentSerializerMappings: EventContentSerializerMappings = DefaultEventContentSerializerMappings, val json: Json = createMatrixEventJson(eventContentSerializerMappings), httpClientFactory: (HttpClientConfig<*>.() -> Unit) -> HttpClient = { HttpClient(it) }) : MatrixClientServerApiClient
Link copied to clipboard
class MatrixClientServerApiHttpClient(baseUrl: Url? = null, eventContentSerializerMappings: EventContentSerializerMappings = DefaultEventContentSerializerMappings, json: Json = createMatrixEventJson(eventContentSerializerMappings), accessToken: MutableStateFlow<String?>, onLogout: suspend (isSoft: Boolean) -> Unit = {}, httpClientFactory: (HttpClientConfig<*>.() -> Unit) -> HttpClient = { HttpClient(it) }) : MatrixApiClient
Link copied to clipboard
interface MediaApiClient
Link copied to clipboard
data class OlmKeysChange(val oneTimeKeysCount: OneTimeKeysCount?, val fallbackKeyTypes: UnusedFallbackKeyTypes?)
Link copied to clipboard
typealias OlmKeysChangeSubscriber = suspend (OlmKeysChange) -> Unit
Link copied to clipboard
interface PushApiClient
Link copied to clipboard
interface RoomsApiClient
Link copied to clipboard
class RoomsApiClientImpl(httpClient: MatrixClientServerApiHttpClient, val contentMappings: EventContentSerializerMappings) : RoomsApiClient
Link copied to clipboard
interface ServerApiClient
Link copied to clipboard
interface SyncApiClient : EventEmitter
Link copied to clipboard
class SyncApiClientImpl(httpClient: MatrixClientServerApiHttpClient) : EventEmitterImpl, SyncApiClient
Link copied to clipboard
typealias SyncResponseSubscriber = suspend (Sync.Response) -> Unit
Link copied to clipboard
Link copied to clipboard
interface UIA<T>
Link copied to clipboard
interface UsersApiClient
Link copied to clipboard
class UsersApiClientImpl(httpClient: MatrixClientServerApiHttpClient, val contentMappings: EventContentSerializerMappings) : UsersApiClient

Functions

Link copied to clipboard
inline suspend fun <C : GlobalAccountDataEventContent> UsersApiClient.getAccountData(userId: UserId, key: String = "", asUserId: UserId? = null): Result<C>
inline suspend fun <C : RoomAccountDataEventContent> RoomsApiClient.getAccountData(roomId: RoomId, userId: UserId, key: String = "", asUserId: UserId? = null): Result<C>
Link copied to clipboard
inline suspend fun <C : MessageEventContent> RoomsApiClient.getRelationsByType(roomId: RoomId, eventId: EventId, relationType: RelationType, from: String, to: String? = null, limit: Long? = null, asUserId: UserId? = null): Result<GetRelationsResponse>
Link copied to clipboard
inline suspend fun <C : StateEventContent> RoomsApiClient.getStateEvent(roomId: RoomId, stateKey: String = "", asUserId: UserId? = null): Result<C>
Link copied to clipboard
suspend fun <T> UIA<T>.injectOnSuccessIntoUIA(onSuccessCallback: suspend () -> Unit = {}): UIA<T>
Link copied to clipboard
suspend fun SyncApiClient.startOnce(filter: String? = null, setPresence: Presence? = null, currentBatchToken: MutableStateFlow<String?> = MutableStateFlow(null), timeout: Long = 0, withTransaction: suspend (block: suspend () -> Unit) -> Unit = { it() }, asUserId: UserId? = null): Result<Unit>