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) {
}
}
);
// manually set profile image URL
TalkPlus.updateUserProfile(
username,
profileImageUrl,
metaData,
object : TalkPlus.CallbackListener<TPUser>() {
override fun onSuccess(tpUser: TPUser) { }
override fun onFailure(errorCode: Int, exception: Exception) { }
}
)
// upload profile image file
TalkPlus.updateUserProfile(
username,
profileImageFile,
metaData,
object : TalkPlus.CallbackListener<TPUser>() {
override fun onSuccess(tpUser: TPUser) { }
override fun onFailure(errorCode: Int, exception: Exception) { }
}
)
Last updated