User
You can obtain current TapTalk.io active user data by using these methods:

Obtain current TapTalk.io active user from cache by calling getTaptalkActiveUser().
Java
Kotlin
TAPUserModel activeUser = TapTalk.getTaptalkActiveUser();
val activeUser = TapTalk.getTaptalkActiveUser()

You can retrieve the latest TapTalk.io active user data from the server with the refreshActiveUser() method.
Java
Kotlin
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?) {
}
})

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()).
Java
Kotlin
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
Last modified 6mo ago
Copy link
On this page
Get TapTalk.io Active User
Refresh TapTalk.io Active User
Update Active User Bio