Package-level declarations
Types
Link copied to clipboard
interface AppserviceApiClient
Link copied to clipboard
Link copied to clipboard
interface AuthenticationApiClient
Link copied to clipboard
class AuthenticationApiClientImpl(httpClient: MatrixClientServerApiHttpClient) : AuthenticationApiClient
Link copied to clipboard
Link copied to clipboard
interface DevicesApiClient
Link copied to clipboard
Link copied to clipboard
interface DiscoveryApiClient
Link copied to clipboard
Link copied to clipboard
interface KeysApiClient
Link copied to clipboard
Link copied to clipboard
interface MatrixClientServerApiClient
Link copied to clipboard
class MatrixClientServerApiClientImpl(baseUrl: Url? = null, onLogout: suspend (isSoft: Boolean) -> Unit = {}, val eventContentSerializerMappings: EventContentSerializerMappings = DefaultEventContentSerializerMappings, val json: Json = createMatrixEventJson(eventContentSerializerMappings), httpClientFactory: (config: HttpClientConfig<*>.() -> Unit) -> HttpClient = { defaultTrixnityHttpClient(config=it) }, syncLoopDelay: Duration = 2.seconds, syncLoopErrorDelay: Duration = 5.seconds) : 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: (config: HttpClientConfig<*>.() -> Unit) -> HttpClient = { defaultTrixnityHttpClient(config = it) }) : MatrixApiClient
Link copied to clipboard
interface MediaApiClient
Link copied to clipboard
Link copied to clipboard
data class OlmKeysChange(val oneTimeKeysCount: OneTimeKeysCount?, val fallbackKeyTypes: UnusedFallbackKeyTypes?)
Link copied to clipboard
interface PushApiClient
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class SyncApiClientImpl(httpClient: MatrixClientServerApiHttpClient, syncLoopDelay: Duration, syncLoopErrorDelay: Duration) : EventEmitterImpl, SyncApiClient
Link copied to clipboard
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
Link copied to clipboard
suspend fun SyncApiClient.startOnce(filter: String? = null, setPresence: Presence? = null, getBatchToken: suspend () -> String?, setBatchToken: suspend (String) -> Unit, timeout: Long = 0, withTransaction: suspend (block: suspend () -> Unit) -> Unit = { it() }, asUserId: UserId? = null): Result<Unit>