Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object ConvertMediaPlugin : HttpClientPlugin<Unit, Unit>
Link copied to clipboard
interface DeviceApiClient
Link copied to clipboard
Link copied to clipboard
interface KeyApiClient
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: (config: HttpClientConfig<*>.() -> Unit) -> HttpClient = defaultTrixnityHttpClientFactory(), 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 = defaultTrixnityHttpClientFactory()) : MatrixApiClient
Link copied to clipboard
interface MediaApiClient
Link copied to clipboard
interface PushApiClient
Link copied to clipboard
interface RoomApiClient
Link copied to clipboard
class RoomApiClientImpl(httpClient: MatrixClientServerApiHttpClient, val contentMappings: EventContentSerializerMappings) : RoomApiClient
Link copied to clipboard
interface ServerApiClient
Link copied to clipboard
interface SyncApiClient : ClientEventEmitter<SyncEvents>
Link copied to clipboard
class SyncApiClientImpl(httpClient: MatrixClientServerApiHttpClient, syncLoopDelay: Duration, syncLoopErrorDelay: Duration) : ClientEventEmitterImpl<SyncEvents> , SyncApiClient
Link copied to clipboard
class SyncEvents(val syncResponse: Sync.Response, allEvents: List<ClientEvent<*>>) : List<ClientEvent<*>>
Link copied to clipboard
Link copied to clipboard
sealed interface UIA<T>
Link copied to clipboard
interface UserApiClient
Link copied to clipboard
class UserApiClientImpl(httpClient: MatrixClientServerApiHttpClient, val contentMappings: EventContentSerializerMappings) : UserApiClient

Functions

Link copied to clipboard
inline suspend fun <C : GlobalAccountDataEventContent> UserApiClient.getAccountData(userId: UserId, key: String = "", asUserId: UserId? = null): Result<C>
inline suspend fun <C : RoomAccountDataEventContent> RoomApiClient.getAccountData(roomId: RoomId, userId: UserId, key: String = "", asUserId: UserId? = null): Result<C>
Link copied to clipboard
inline suspend fun <C : MessageEventContent> RoomApiClient.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> RoomApiClient.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, getBatchToken: suspend () -> String?, setBatchToken: suspend (String) -> Unit, timeout: Duration = ZERO, withTransaction: suspend (block: suspend () -> Unit) -> Unit = { it() }, asUserId: UserId? = null): Result<Unit>