update My User Profile
public final Unit updateMyUserProfile(UpdateUserProfileParams params, ErrorDetailHandler<List<String>> handler)
Update Current user profile.
recommend first Get user profile, In latest user on top of profile Update.
Usage Example:
val params = UpdateUserProfileParams().apply {
name = "New Nickname"
portraitUri = "https://example.com/avatar.png"
gender = Gender.MALE
}
NCEngine.user.updateMyUserProfile(params) { errorKeys, error ->
if (error == null) {
// Updated successfully
} else {
// Update failed, errorKeys Contains failed fields Key List
}
}Content copied to clipboard
Parameters
params
Update parameters
handler
Operation result callback.Success When error null; On failure, detail Contains failed fields Key List