Phone Calls History
Phone Call History – easy to use APIs for querying call history. Component provides dedicated APIs for querying answered, missed, rejected calls.
1. Dependencies
Open the build.gradle file for your project and add the following dependencies:
1 2 3 4 5 6 7 8 9 10 |
|
2. View the Call History
Permissions
3. Get Phone Calls History (with filtering - all, received call, made calls, missed calls)
Create a phone calls history data access object.
1 2 3 4 |
|
3. Query types
In order to query the phone logs, you need to create a Query instance. You can find below the supported types of quiries:
Add a filter for full history data.
1 |
|
Add a filter for answered calls.
1 |
|
Add a filter for missed calls.
1 |
|
Add a filter for made calls.
1 |
|
Add a filter for rejected calls.
1 |
|
Add a filter for reading history since a given date. The date Parameter represents the date since the history will be filtered.
1 |
|
Combined queries
The queries can also be combined. For example: Filter for reading history since the @date filtered by outgoing and missed calls.
1 |
|
In order to query the dataAccess, you need to call the find method. The queryBuider Parameter represents the Query.Builder and returns a list of HistoryRecord.
1 2 3 4 |
|
4. Clear Phone Calls History
Info
Not yet implemented.