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

Get TapTalk.io Active User

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

Refresh TapTalk.io Active User

You can retrieve the latest TapTalk.io active user data from the server with the refreshActiveUser() method.
Java
Kotlin
1
TapTalk.refreshActiveUser(new TapCommonListener() {
2
@Override
3
public void onSuccess(String successMessage) {
4
// Successfully loaded latest user data
5
}
6
7
@Override
8
public void onError(String errorCode, String errorMessage) {
9
10
}
11
});
Copied!
1
TapTalk.refreshActiveUser(object : TapCommonListener() {
2
override fun onSuccess(successMessage: String?) {
3
// Successfully loaded latest user data
4
}
5
6
override fun onError(errorCode: String?, errorMessage: String?) {
7
8
}
9
})
Copied!

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()).
Java
Kotlin
1
TapCoreContactManager.getInstance().updateActiveUserBio(BIO_STRING, new TapCoreGetContactListener() {
2
@Override
3
public void onSuccess(TAPUserModel user) {
4
// Successfully updated active user bio
5
}
6
7
@Override
8
public void onError(String errorCode, String errorMessage) {
9
10
}
11
});
Copied!
1
TapCoreContactManager.getInstance().updateActiveUserBio(BIO_STRING, object : TapCoreGetContactListener() {
2
override fun onSuccess(user: TAPUserModel?) {
3
// Successfully loaded latest user data
4
}
5
6
override fun onError(errorCode: String?, errorMessage: String?) {
7
8
}
9
})
Copied!
Parameters BIO_STRING: (String) custom string for active user bio
Last modified 3mo ago