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.
Objective-C
1
#import <TapTalk/TapTalk.h>
2
3
TAPUserModel *tapTalkActiveUser = [[TapTalk sharedInstance] getTapTalkActiveUser];
Copied!

Refresh TapTalk.io Active User

Obtain current Retrieve latest TapTalk.io active user data from the server.
Objective-C
1
#import <TapTalk/TapTalk.h>
2
3
[[TapTalk sharedInstance] refreshActiveUserWithSuccess:^{
4
// Successfully updated active user data
5
} failure:^(NSError * _Nonnull error) {
6
// Failed to update active user data
7
}];
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.bio).
Objective-C
1
[[TAPCoreContactManager sharedManager] updateActiveUserBio:BIO_STRING success:^{
2
// Successfully updated active user bio
3
} failure:^(NSError * _Nonnull error) {
4
// Failed to update active user bio
5
}];
Copied!
Parameters BIO_STRING: (NSString *) custom string for active user bio
Last modified 3mo ago