update

abstract suspend fun update(profileData: MemberProfile): MemberProfile

Updates the current member’s profile data.

Return

MemberProfile containing the saved profile after update.

Parameters

profileData

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

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