Conversations
public class Conversations
Handles listing and creating Conversations.
-
Undocumented
Declaration
Swift
public func findGroup(groupId: String) throws -> Group?
-
findConversation(conversationId:
Asynchronous) Undocumented
Declaration
Swift
public func findConversation(conversationId: String) async throws -> Conversation?
-
findConversationByTopic(topic:
Asynchronous) Undocumented
Declaration
Swift
public func findConversationByTopic(topic: String) async throws -> Conversation?
-
findDmByIdentity(publicIdentity:
Asynchronous) Undocumented
Declaration
Swift
public func findDmByIdentity(publicIdentity: PublicIdentity) async throws -> Dm?
-
Undocumented
Declaration
Swift
public func findMessage(messageId: String) throws -> DecodedMessage?
-
sync()
AsynchronousUndocumented
Declaration
Swift
public func sync() async throws
-
syncAllConversations(consentStates:
Asynchronous) Undocumented
Declaration
Swift
public func syncAllConversations(consentStates: [ConsentState]? = nil) async throws -> UInt32
-
Undocumented
Declaration
Swift
public func listGroups( createdAfter: Date? = nil, createdBefore: Date? = nil, limit: Int? = nil, consentStates: [ConsentState]? = nil ) throws -> [Group]
-
Undocumented
Declaration
Swift
public func listDms( createdAfter: Date? = nil, createdBefore: Date? = nil, limit: Int? = nil, consentStates: [ConsentState]? = nil ) throws -> [Dm]
-
Undocumented
Declaration
Swift
public func list( createdAfter: Date? = nil, createdBefore: Date? = nil, limit: Int? = nil, consentStates: [ConsentState]? = nil ) async throws -> [Conversation]
-
Undocumented
Declaration
Swift
public func stream( type: ConversationFilterType = .all, onClose: (() -> Void)? = nil ) -> AsyncThrowingStream< Conversation, Error >
-
Undocumented
Declaration
Swift
public func newConversationWithIdentity( with peerIdentity: PublicIdentity, disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Conversation
-
Undocumented
Declaration
Swift
public func findOrCreateDmWithIdentity( with peerIdentity: PublicIdentity, disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Dm
-
newConversation(with:
AsynchronousdisappearingMessageSettings: ) Undocumented
Declaration
Swift
public func newConversation( with peerInboxId: InboxId, disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Conversation
-
findOrCreateDm(with:
AsynchronousdisappearingMessageSettings: ) Undocumented
Declaration
Swift
public func findOrCreateDm( with peerInboxId: InboxId, disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Dm
-
newGroupWithIdentities(with:
Asynchronouspermissions: name: imageUrl: description: disappearingMessageSettings: ) Undocumented
Declaration
Swift
public func newGroupWithIdentities( with identities: [PublicIdentity], permissions: GroupPermissionPreconfiguration = .allMembers, name: String = "", imageUrl: String = "", description: String = "", disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Group
-
newGroupCustomPermissionsWithIdentities(with:
AsynchronouspermissionPolicySet: name: imageUrl: description: disappearingMessageSettings: ) Undocumented
Declaration
Swift
public func newGroupCustomPermissionsWithIdentities( with identities: [PublicIdentity], permissionPolicySet: PermissionPolicySet, name: String = "", imageUrl: String = "", description: String = "", disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Group
-
Undocumented
Declaration
Swift
public func newGroup( with inboxIds: [InboxId], permissions: GroupPermissionPreconfiguration = .allMembers, name: String = "", imageUrl: String = "", description: String = "", disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Group
-
newGroupCustomPermissions(with:
AsynchronouspermissionPolicySet: name: imageUrl: description: disappearingMessageSettings: ) Undocumented
Declaration
Swift
public func newGroupCustomPermissions( with inboxIds: [InboxId], permissionPolicySet: PermissionPolicySet, name: String = "", imageUrl: String = "", description: String = "", disappearingMessageSettings: DisappearingMessageSettings? = nil ) async throws -> Group
-
newGroupOptimistic(permissions:
groupName: groupImageUrlSquare: groupDescription: disappearingMessageSettings: ) Undocumented
Declaration
Swift
public func newGroupOptimistic( permissions: GroupPermissionPreconfiguration = .allMembers, groupName: String = "", groupImageUrlSquare: String = "", groupDescription: String = "", disappearingMessageSettings: DisappearingMessageSettings? = nil ) throws -> Group
-
Undocumented
Declaration
Swift
public func streamAllMessages( type: ConversationFilterType = .all, consentStates: [ConsentState]? = nil, onClose: (() -> Void)? = nil ) -> AsyncThrowingStream<DecodedMessage, Error>
-
fromWelcome(envelopeBytes:
Asynchronous) Undocumented
Declaration
Swift
public func fromWelcome(envelopeBytes: Data) async throws -> Conversation?
-
Undocumented
Declaration
Swift
public func getHmacKeys() throws -> Xmtp_KeystoreApi_V1_GetConversationHmacKeysResponse
-
allPushTopics()
AsynchronousUndocumented
Declaration
Swift
public func allPushTopics() async throws -> [String]