get

abstract suspend fun get(): MemberProfile

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}")
}
}

iOS (Swift)

Task {
do {
let profile = try await AFCore.shared.profile().get()
self.bindProfileUI(profile)
} catch {
self.showError("Could not load profile: \\(error.localizedDescription)")
}
}