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().

TAPUserModel activeUser = TapTalk.getTaptalkActiveUser();

Refresh TapTalk.io Active User

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) {
    
    }
});

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) {
    
    }
});

Parameters BIO_STRING: (String) custom string for active user bio

Last updated