Companion
object Companion
Functions
Link copied to clipboard
fun SDKClient.Companion.activatePersistentLibXMTPLogWriter(context: Context, logLevel: LogLevel, rotationSchedule: LogRotation, maxFiles: UInt, processType: LogProcessType = LogProcessType.MAIN)
Write native logs in the app's files directory.
Link copied to clipboard
suspend fun build(identity: PublicIdentity, options: ClientOptions, inboxId: InboxId? = null, defaultDirectory: String? = null, codecs: List<ContentCodec<*>> = emptyList()): SDKClient
Link copied to clipboard
suspend fun SDKClient.Companion.build(context: Context, identity: PublicIdentity, options: ClientOptions, inboxId: InboxId? = null, codecs: List<ContentCodec<*>> = emptyList()): SDKClient
Open an existing identity with the same Android storage and lifecycle rules.
Link copied to clipboard
suspend fun SDKClient.Companion.canMessage(identities: List<PublicIdentity>, backend: BackendSource): Map<String, Boolean>
Link copied to clipboard
Try to stop the file writer and return the number of files deleted.
Link copied to clipboard
suspend fun create(signer: Signer, options: ClientOptions, defaultDirectory: String? = null, codecs: List<ContentCodec<*>> = emptyList()): SDKClient
Link copied to clipboard
suspend fun SDKClient.Companion.create(context: Context, signer: Signer, options: ClientOptions, codecs: List<ContentCodec<*>> = emptyList()): SDKClient
Create a client with Android default storage and process lifecycle control.
Link copied to clipboard
Link copied to clipboard
suspend fun SDKClient.Companion.fetchServerConfiguration(backend: BackendSource): ServerConfiguration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun SDKClient.Companion.inboxIdFor(identity: PublicIdentity, backend: BackendSource): InboxId
Link copied to clipboard
suspend fun SDKClient.Companion.inboxStates(ids: List<InboxId>, backend: BackendSource): List<InboxState>
Link copied to clipboard
suspend fun SDKClient.Companion.isAddressAuthorized(inboxId: InboxId, address: String, backend: BackendSource): Boolean
Link copied to clipboard
suspend fun SDKClient.Companion.isInstallationAuthorized(inboxId: InboxId, installationId: InstallationId, backend: BackendSource): Boolean
Link copied to clipboard
suspend fun SDKClient.Companion.keyPackageStatuses(ids: List<InstallationId>, backend: BackendSource): Map<String, KeyPackageStatus>
Link copied to clipboard
suspend fun SDKClient.Companion.newestMessageMetadata(ids: List<ConversationId>, backend: BackendSource): Map<String, MessageMetadataEntry>
Link copied to clipboard
suspend fun SDKClient.Companion.revokeInstallations(signer: Signer, inboxId: InboxId, ids: List<InstallationId>, backend: BackendSource)
Link copied to clipboard
suspend fun SDKClient.Companion.verifySignedWithPublicKey(text: String, signature: ByteArray, publicKey: ByteArray): Boolean