update
Updates the current member’s profile data.
Return
MemberProfile containing the saved profile after update.
Parameters
profile Data
The updated profile information to save.
Throws
if update fails.
Android (Kotlin)
lifecycleScope.launch {
try {
val updated = AFCore.profile().update(profileData.copy(firstName = "Alex"))
bindProfileUI(updated)
} catch (t: Throwable) {
showError("Profile update failed: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
var profile = try await AFCore.shared.profile().get()
profile.firstName = "Alex"
let updated = try await AFCore.shared.profile().update(profile)
self.bindProfileUI(updated)
} catch {
self.showError("Profile update failed: \\(error.localizedDescription)")
}
}Content copied to clipboard