Contact
If your application is using the core implementation type, you can use the TapCoreContactManager class to manage your user's contacts.
TapTalk Contact Method
Description
​Get All User Contact​
Get all of the user's contact data from TapTalk.io
​Get Contact Detail Info with TapTalk User ID​
Get a detailed contact info with selected TapTalk.io user ID
​Get Contact Detail Info with Client User ID​
Get a detailed contact info with selected Client user ID (xcUserID)
​Add User to Contact with User ID​
Add a user with selected TapTalk.io user ID to the active user's contacts
​Add User to Contact with Phone Number​
Add a user with selected phone number to the active user's contacts
​Remove User from Contact​
Remove a user with selected TapTalk.io user ID from the active user's contacts

Get All User Contact

Get all of the user's contact data from TapTalk.io.
JavaScript
1
tapCoreContactManager.getAllUserContacts({
2
onSuccess: (contactList) => {
3
// do action here
4
},
5
onError: (errorCode, errorMessage) => {
6
// do action here
7
}
8
})
Copied!

Get Contact Detail Info with TapTalk User ID

Get a detailed contact info with selected TapTalk.io user ID.
JavaScript
1
tapCoreContactManager.getUserDataWithUserID(USER_ID, {
2
onSuccess: (response) => {
3
// do action here
4
},
5
onError: (errorCode, errorMessage) => {
6
// do action here
7
}
8
})
Copied!
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).
JavaScript
1
tapCoreContactManager.getUserDataWithXCUserID(XC_USER_ID, {
2
onSuccess: (response) => {
3
// do action here
4
},
5
onError: (errorCode, errorMessage) => {
6
// do action here
7
}
8
})
Copied!
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.
JavaScript
1
tapCoreContactManager.addToTapTalkContactsWithUserID(USER_ID, {
2
onSuccess: (response) => {
3
// do action here
4
},
5
onError: (errorCode, errorMessage) => {
6
// do action here
7
}
8
})
Copied!
Parameters
USER_ID: (String) Taptalk.io User ID of the contact to be added

Add User to Contact with Phone Number

Add a user with selected phone number to the active user's contacts.JavaKotlin
JavaScript
1
tapCoreContactManager.addToTapTalkContactsWithPhoneNumber(PHONE_NUMBER, {
2
onSuccess: (response) => {
3
// do action here
4
},
5
onError: (errorCode, errorMessage) => {
6
// do action here
7
}
8
})
Copied!
Parameters
PHONE_NUMBER: (String) phone number of the contact to be added

Remove User from Contact

Remove a user with selected TapTalk.io user ID from the active user's contacts.
1
tapCoreContactManager.removeFromTapTalkContacts(userID, {
2
onSuccess: (response) => {
3
// do action here
4
},
5
onError: (errorCode, errorMessage) => {
6
// do action here
7
}
8
})
Copied!
Parameters
USER_ID: (String) Taptalk.io User ID of the contact to remove

Get User Contact by Username

Call this method to get User Contact by username.
1
tapCoreContactManager.getUserByUsername(USERNAME, ignoreCase, {
2
onSuccess: (response) => {
3
// do action here
4
},
5
onError: (errorCode, errorMessage) => {
6
// do action here
7
}
8
})
Copied!
Parameters USERNAME: (String) username IGNORE_CASE: (Boolean) ignore case username

Filter Contact

Call this method to filter contact list
1
tapCoreContactManager.getFilterUserContacts(contactString, {
2
onContactFound: (contactList) => {
3
// do action here
4
},
5
onContactNotFound: () => {
6
// do action here
7
}
8
})
Copied!
Parameters CONTACT_STRING: (String) keyword