Skip to content
Snippets Groups Projects
Commit d167e687 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update docs

parent 47671320
No related branches found
No related tags found
2 merge requests!147Group Chats,!102Release 1.0.0
......@@ -98,6 +98,9 @@ let ud = messenger.ud()
// get Backup:
let backup = messenger.backup()
// get GroupChat
let groupChat = messenger.groupChat()
```
## 💾 Backup
......@@ -217,3 +220,26 @@ let transferId = try messenger.sendFile(.init(file: file, recipientId: ...)) { i
}
}
```
## 💬 Group Chat
### Setup
```swift
// register callbacks:
let groupRequestsCancellable = messenger.registerGroupRequestHandler(.init { group in
// handle group request...
})
let groupChatProcessorCancellable = messenger.registerGroupChatProcessor(.init { result in
switch result {
case .success(let callback):
// handle group chat processor callback...
case .failure(let error):
// handle error...
}
})
// start group chat manager:
try messenger.startGroupChat()
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment