set Friend Info
public final Unit setFriendInfo(SetFriendInfoParams params, ErrorDetailHandler<List<String>> handler)
Sets friend info (e.g., remark name, extended profile).
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 the list of failed field keys
}
}Content copied to clipboard
Parameters
params
Parameters specifying the friend info to update
handler
Callback; on success error is null; on failure, detail contains the list of failed field keys