generate Invite Colleague Invitation
Generates an invitation message for inviting a colleague.
Return
A Pair containing the invitation title and content.
Throws
if generation fails.
Android (Kotlin)
lifecycleScope.launch {
try {
val (title, content) = AFCore.applicationSettings().generateInviteColleagueInvitation()
shareInvite(title, content)
} catch (t: Throwable) {
showError("Could not generate invitation: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let (title, content) = try await AFCore.shared.applicationSettings().generateInviteColleagueInvitation()
self.shareInvite(title: title, content: content)
} catch {
self.showError("Could not generate invitation: \\(error.localizedDescription)")
}
}Content copied to clipboard