Matrix

class Matrix(context: Context, matrixConfiguration: MatrixConfiguration)

This is the main entry point to the matrix sdk.

The constructor creates a new instance of Matrix, it's recommended to manage this instance as a singleton.

Parameters

context

the application context

matrixConfiguration

global configuration that will be used for every org.matrix.android.sdk.api.session.Session

Constructors

Link copied to clipboard
fun Matrix(context: Context, matrixConfiguration: MatrixConfiguration)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun authenticationService(): AuthenticationService

Return the AuthenticationService.

Link copied to clipboard
fun debugService(): DebugService

Return the DebugService.

Link copied to clipboard
fun getUserAgent(): String

Return the User Agent used for any request that the SDK is making to the homeserver. There is no way to change the user agent at the moment.

Link copied to clipboard
fun getWorkerFactory(): WorkerFactory

Get the worker factory. The returned value has to be provided to WorkConfiguration.Builder().

Link copied to clipboard
fun homeServerHistoryService(): HomeServerHistoryService

Return the HomeServerHistoryService.

Link copied to clipboard
fun lightweightSettingsStorage(): LightweightSettingsStorage

Return the LightweightSettingsStorage.

Link copied to clipboard
fun rawService(): RawService

Return the RawService.

Link copied to clipboard
fun registerApiInterceptorListener(path: ApiPath, listener: ApiInterceptorListener)

Register an API interceptor, to be able to be notified when the specified API got a response.

Link copied to clipboard
fun secureStorageService(): SecureStorageService

Returns the SecureStorageService used to encrypt and decrypt sensitive data.

Link copied to clipboard
fun unregisterApiInterceptorListener(path: ApiPath, listener: ApiInterceptorListener)

Un-register an API interceptor.