You can retrieve the latest TapTalk.io active user data from the server with the refreshActiveUser() method.
TapTalk.refreshActiveUser(new TapCommonListener() {
@Override
public void onSuccess(String successMessage) {
// Successfully loaded latest user data
}
@Override
public void onError(String errorCode, String errorMessage) {
}
});
TapTalk.refreshActiveUser(object : TapCommonListener() {
override fun onSuccess(successMessage: String?) {
// Successfully loaded latest user data
}
override fun onError(errorCode: String?, errorMessage: String?) {
}
})
Update Active User Bio
You are able to update the active user's bio with a custom string by calling updateActiveUserBio() from TapCoreContactManager class.
Successful update will be reflected in the bio field of the updated active user's data (TAPUserModel.getBio()).
TapCoreContactManager.getInstance().updateActiveUserBio(BIO_STRING, new TapCoreGetContactListener() {
@Override
public void onSuccess(TAPUserModel user) {
// Successfully updated active user bio
}
@Override
public void onError(String errorCode, String errorMessage) {
}
});
TapCoreContactManager.getInstance().updateActiveUserBio(BIO_STRING, object : TapCoreGetContactListener() {
override fun onSuccess(user: TAPUserModel?) {
// Successfully loaded latest user data
}
override fun onError(errorCode: String?, errorMessage: String?) {
}
})
Parameters
BIO_STRING: (String) custom string for active user bio