Update User Information

You can update username and profile image URL.

// manually set profile image URL
TalkPlus.updateUserProfile(username, 
    profileImageUrl, 
    metaData, 
    new TalkPlus.CallbackListener<TPUser>() {
        @Override
        public void onSuccess(TPUser tpUser) {
        }
        @Override
        public void onFailure(int i, Exception e) {
        }
    }
);

// upload profile image file
TalkPlus.updateUserProfile(username, 
    profileImageFile, 
    metaData, 
    new TalkPlus.CallbackListener<TPUser>() {
        @Override
        public void onSuccess(TPUser tpUser) {
        }
        @Override
        public void onFailure(int i, Exception e) {
        }
    }
);

Last updated