Chat / Unreal
Current version: v3
Chat Unreal v3
Chat Unreal
Chat
Unreal
Home
/
Chat
/
Unreal
/
Users

Update user profile

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.
});