/ SDKs / Unreal
SDKs
Chat SDKs Unreal v3
Chat SDKs Unreal
Chat SDKs
Unreal
Version 3

Update user profile

Copy link

Using the UpdateCurrentUserInfo() method, you can update a user's nickname and profile image, as well as their profile picture with a URL.

SBDMain::UpdateCurrentUserInfo(NICKNAME, PROFILE_URL, [](SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }

    // The current user's profile is successfully updated.
    // The updated profile image will show in a view.
});

Or, you can upload an image directly using the UpdateCurrentUserInfoWithBinaryProfileImage() method.

SBDMain::UpdateCurrentUserInfoWithBinaryProfileImage(NICKNAME, PROFILE_IMAGE_FILE_PATH, MIME_TYPE, [](SBDError* error) {_
    if (error != nullptr) {
        // Handle error.
        return;
    }

    // A new profile images is successfully uploaded to Sendbird server.
    // The updated profile image will show in a view.
});