Retrieve the list of groups in common with another user.
Get All User Contacts
Get all of the user's contact data from TapTalk.io.
TapCoreContactManager.getInstance().getAllUserContacts(newTapCoreGetMultipleContactListener() { @OverridepublicvoidonSuccess(List<TAPUserModel> users) {// Returns a list of the active user's TapTalk.io contacts } @OverridepublicvoidonError(String errorCode,String errorMessage) { }});
TapCoreContactManager.getInstance().getAllUserContacts(object : TapCoreGetMultipleContactListener() {overridefunonSuccess(users: List<TAPUserModel>?) {// Returns a list of the active user's TapTalk.io contacts }overridefunonError(errorCode: String?, errorMessage: String?) { }})
Fetch All User Contacts from Server
Calling fetchAllUserContactsFromServer will fetch the user's latest contact data from TapTalk.io server and syncs it to the device's local storage.
TapCoreContactManager.getInstance().fetchAllUserContactsFromServer(newTapCoreGetMultipleContactListener() { @OverridepublicvoidonSuccess(List<TAPUserModel> users) {// Returns a list of the active user's TapTalk.io contacts } @OverridepublicvoidonError(String errorCode,String errorMessage) { }});
TapCoreContactManager.getInstance().fetchAllUserContactsFromServer(object : TapCoreGetMultipleContactListener() {overridefunonSuccess(users: List<TAPUserModel>?) {// Returns a list of the active user's TapTalk.io contacts }overridefunonError(errorCode: String?, errorMessage: String?) { }})
Get Contact Detail Info with TapTalk User ID
Get a detailed contact info with selected TapTalk.io user ID.
TapCoreContactManager.getInstance().getUserDataWithUserID(USER_ID,newTapCoreGetContactListener() { @OverridepublicvoidonSuccess(TAPUserModel user) {// Returns detailed user info } @OverridepublicvoidonError(String errorCode,String errorMessage) { }});
TapCoreContactManager.getInstance().getUserDataWithUserID(USER_ID, object : TapCoreGetContactListener() {overridefunonSuccess(user: TAPUserModel?) {// Returns detailed user info }overridefunonError(errorCode: String?, errorMessage: String?) { }})
Parameters
USER_ID: (String) Taptalk.io User ID of the selected user
Get Contact Detail Info with Client User ID
Get a detailed contact info with selected Client user ID (xcUserID).
TapCoreContactManager.getInstance().getUserDataWithXCUserID(XC_USER_ID,newTapCoreGetContactListener() { @OverridepublicvoidonSuccess(TAPUserModel user) {// Returns detailed user info } @OverridepublicvoidonError(String errorCode,String errorMessage) { }});
TapCoreContactManager.getInstance().getUserDataWithXCUserID(XC_USER_ID, object : TapCoreGetContactListener() {overridefunonSuccess(user: TAPUserModel?) {// Returns detailed user info }overridefunonError(errorCode: String?, errorMessage: String?) { }})
Parameters
XC_USER_ID: (String) Client User ID of the selected user
Add User to Contact with User ID
Add a user with selected TapTalk.io user ID to the active user's contacts.
Parameters
USER: (TAPUserModel) the user data model to be saved
Search Local Contact
Call this method to search the active user's contacts from the device's local storage with a keyword. Provided keyword will be used to filter the contacts' full name in the search result.
ParametersUSER_ID: (String) ID of the user to report
CATEGORY: (String) Category of the violation. max length is 100 characters
IS_OTHER_CATEGORY: (Boolean) If the category is other than the predefined categories
REASON: (String) reason why the user is reported
Report Message
You may call this method to submit a report for a selected message. Submitted reports can then be viewed through the dashboard.
ParametersMESSAGE_ID: (String) unique server ID of the message to report
ROOM_ID: (String) ID of the room where the message belongs to
CATEGORY: (String) Category of the violation. max length is 100 characters
IS_OTHER_CATEGORY: (Boolean) If the category is other than the predefined categories
REASON: (String) reason why the message is reported
Block User
You may block a user to stop conversation flow with the blocked user. Blocked users will not be able to send and receive message, or retrieve profile info from the active user.