get
Retrieves the profile data for the current member.
Return
MemberProfile containing the member’s profile information.
Throws
if retrieval fails.
Android (Kotlin)
lifecycleScope.launch {
try {
val profile = AFCore.profile().get()
bindProfileUI(profile)
} catch (t: Throwable) {
showError("Could not load profile: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let profile = try await AFCore.shared.profile().get()
self.bindProfileUI(profile)
} catch {
self.showError("Could not load profile: \\(error.localizedDescription)")
}
}Content copied to clipboard