Client

class Client

Constructors

Link copied to clipboard
constructor(address: String, libXMTPClient: FfiXmtpClient, dbPath: String, installationId: String, inboxId: String, environment: XMTPEnvironment)
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun addAccount(newAccount: SigningKey)
Link copied to clipboard
suspend fun build(address: String, options: ClientOptions): Client
Link copied to clipboard
suspend fun canMessage(addresses: List<String>): Map<String, Boolean>
Link copied to clipboard
suspend fun create(account: SigningKey, options: ClientOptions): Client
Link copied to clipboard
Link copied to clipboard
fun findConversation(conversationId: String): Conversation?
Link copied to clipboard
Link copied to clipboard
suspend fun findDmByAddress(address: String): Dm?
Link copied to clipboard
fun findDmByInboxId(inboxId: String): Dm?
Link copied to clipboard
fun findGroup(groupId: String): Group?
Link copied to clipboard
fun findMessage(messageId: String): Message?
Link copied to clipboard
suspend fun inboxIdFromAddress(address: String): String?
Link copied to clipboard
suspend fun inboxState(refreshFromNetwork: Boolean): InboxState
Link copied to clipboard
suspend fun inboxStatesForInboxIds(refreshFromNetwork: Boolean, inboxIds: List<String>): List<InboxState>
Link copied to clipboard
Link copied to clipboard
suspend fun removeAccount(recoverAccount: SigningKey, addressToRemove: String)
Link copied to clipboard
Link copied to clipboard
suspend fun revokeAllOtherInstallations(signingKey: SigningKey)
Link copied to clipboard
Link copied to clipboard
suspend fun syncConsent()
Link copied to clipboard
fun verifySignature(message: String, signature: ByteArray): Boolean
Link copied to clipboard
fun verifySignatureWithInstallationId(message: String, signature: ByteArray, installationId: String): Boolean

Properties

Link copied to clipboard
lateinit var address: String
Link copied to clipboard
Link copied to clipboard
lateinit var dbPath: String
Link copied to clipboard
Link copied to clipboard
lateinit var inboxId: String
Link copied to clipboard
lateinit var installationId: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard