| java.lang.Object | ||
| ↳ | com.gsma.services.rcs.RcsService | |
| ↳ | com.gsma.services.rcs.contact.ContactService | |
Contact service offers additional methods to manage RCS info in the local address book. The parameter contact in the API supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
ContactService(Context ctx, RcsServiceListener listener)
Constructor
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
blockContact(ContactId contact)
Block a contact.
| ||||||||||
| final void |
connect()
Connects to the API
| ||||||||||
| void |
disconnect()
Disconnects from the API
| ||||||||||
| RcsContact |
getRcsContact(ContactId contact)
Returns the rcs contact infos from its contact ID (i.e.
| ||||||||||
| Set<RcsContact> |
getRcsContacts()
Returns the list of RCS contacts
| ||||||||||
| Set<RcsContact> |
getRcsContactsOnline()
This method is deprecated.
Use
getRcsContacts() instead. | ||||||||||
| Set<RcsContact> |
getRcsContactsSupporting(String serviceId)
This method is deprecated.
Use
getRcsContacts() instead. | ||||||||||
| void |
unblockContact(ContactId contact)
Unblock a contact
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructor
| ctx | Application context |
|---|---|
| listener | Service listener |
Block a contact. Any communication from the given contact will be blocked and redirected to the corresponding spambox.
| contact | Contact ID |
|---|
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException |
Connects to the API
| RcsPermissionDeniedException |
|---|
Returns the rcs contact infos from its contact ID (i.e. MSISDN)
| contact | Contact ID |
|---|
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsGenericException | |
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException |
Returns the list of RCS contacts
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsGenericException | |
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException |
This method is deprecated.
Use getRcsContacts() instead.
Returns the list of online contacts (i.e. registered)
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsGenericException | |
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException |
This method is deprecated.
Use getRcsContacts() instead.
Returns the list of contacts supporting a given extension or service ID
| serviceId | Service ID |
|---|
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsGenericException | |
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException |
Unblock a contact
| contact | Contact ID |
|---|
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsPersistentStorageException | |
| RcsServiceNotAvailableException |