Constructors

Link copied to clipboard
constructor(pointer: Pointer)
constructor(noPointer: NoPointer)

This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun addressesFromInboxId(refreshFromNetwork: Boolean, inboxIds: List<String>): List<FfiInboxState>
Link copied to clipboard
open suspend override fun addWallet(newWalletAddress: String): FfiSignatureRequest

Adds a wallet address to the existing client

Link copied to clipboard
open suspend override fun applySignatureRequest(signatureRequest: FfiSignatureRequest)
Link copied to clipboard
open suspend override fun backupMetadata(path: String, key: ByteArray): FfiBackupMetadata

Load the metadata for a backup to see what it contains. Reads only the metadata without loading the entire file, so this function is quick.

Link copied to clipboard
open suspend override fun backupToFile(path: String, opts: FfiBackupOptions, key: ByteArray)

Backup your application to file for later restoration.

Link copied to clipboard
open suspend override fun canMessage(accountAddresses: List<String>): Map<String, Boolean>
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun conversation(conversationId: ByteArray): FfiConversation
Link copied to clipboard
open override fun conversations(): FfiConversations
Link copied to clipboard
open suspend override fun dbReconnect()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun dmConversation(targetInboxId: String): FfiConversation
Link copied to clipboard
open suspend override fun findInboxId(address: String): String?
Link copied to clipboard
open suspend override fun getConsentState(entityType: FfiConsentEntityType, entity: String): FfiConsentState
Link copied to clipboard
open suspend override fun getLatestInboxState(inboxId: String): FfiInboxState
Link copied to clipboard
open suspend override fun importFromFile(path: String, key: ByteArray)

Import a previous backup

Link copied to clipboard
open override fun inboxId(): String
Link copied to clipboard
open suspend override fun inboxState(refreshFromNetwork: Boolean): FfiInboxState
Link copied to clipboard
open override fun installationId(): ByteArray
Link copied to clipboard
open override fun message(messageId: ByteArray): FfiMessage
Link copied to clipboard
open suspend override fun registerIdentity(signatureRequest: FfiSignatureRequest)
Link copied to clipboard
open override fun releaseDbConnection()
Link copied to clipboard
Link copied to clipboard
open suspend override fun revokeInstallations(installationIds: List<ByteArray>): FfiSignatureRequest
Link copied to clipboard
open suspend override fun revokeWallet(walletAddress: String): FfiSignatureRequest

Revokes or removes an identity from the existing client

Link copied to clipboard
open suspend override fun sendSyncRequest(kind: FfiDeviceSyncKind)

Manually trigger a device sync request to sync records from another active device on this account.

Link copied to clipboard
open suspend override fun setConsentStates(records: List<FfiConsent>)
Link copied to clipboard
Link copied to clipboard
open override fun signWithInstallationKey(text: String): ByteArray

A utility function to sign a piece of text with this installation's private key.

Link copied to clipboard
fun uniffiClonePointer(): Pointer
Link copied to clipboard
open override fun verifySignedWithInstallationKey(signatureText: String, signatureBytes: ByteArray)

A utility function to easily verify that a piece of text was signed by this installation.

Link copied to clipboard
open override fun verifySignedWithPublicKey(signatureText: String, signatureBytes: ByteArray, publicKey: ByteArray)

A utility function to easily verify that a string has been signed by another libXmtp installation. Only works for verifying libXmtp public context signatures.