set Friend Info
public final Unit setFriendInfo(SetFriendInfoParams params, ErrorDetailHandler<List<String>> handler)
Set friend info.
Usage Example:
val params = SetFriendInfoParams("userId").apply {
remark = "Friend remark name"
extProfile = mapOf("key1" to "value1")
}
NCEngine.user.setFriendInfo(params) { errorKeys, error ->
if (error == null) {
// Set successfully
} else {
// Set failed, errorKeys Contains failed fields Key List
}
}Content copied to clipboard
Parameters
params
Set friend info parameters
handler
Operation result callback.Success When error null; On failure, detail Contains failed fields Key List