| java.lang.Object | ||
| ↳ | com.gsma.services.rcs.RcsService | |
| ↳ | com.gsma.services.rcs.history.HistoryService | |
History service offers the entry point to register and unregister extra history log provider members to the API.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
HistoryService(Context ctx, RcsServiceListener listener)
Constructor
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| final void |
connect()
Connects to the API
| ||||||||||
| long |
createUniqueId(int providerId)
Creates an id that will be unique across all tables in the base column "_id".
| ||||||||||
| void |
disconnect()
Disconnects from the API
| ||||||||||
| void |
registerExtraHistoryLogMember(int providerId, Uri providerUri, Uri database, String table, Map<String, String> columnMapping)
Registers an external history log member.
| ||||||||||
| void |
unregisterExtraHistoryLogMember(int providerId)
Unregisters an external history log member.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructor
| ctx | Application context |
|---|---|
| listener | Service listener |
Connects to the API
| RcsPermissionDeniedException |
|---|
Creates an id that will be unique across all tables in the base column "_id".
| providerId | of the provider that requires the generated id for its table |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Registers an external history log member.
| providerId | Provider ID of history log member |
|---|---|
| providerUri | Provider Uri |
| database | URI of database to register |
| table | Name of table to register |
| columnMapping | Translator of internal field names to history log provider field names |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Unregisters an external history log member.
| providerId | Provider ID of history log member |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |