searchCompanyContactsAsPagingSource

fun searchCompanyContactsAsPagingSource(    context: Context,     filter: STWContactFilterOption? = null,     search: String? = null): PagingSource<Int, STWContact>

Call this method to search for contacts. A request will be send to server from the local database to retrieve searched contacts and merged with local contacts The max number of contacts to be retrieved should be >= 1 and <=50.

Return

PagingSource of STWContact.

Parameters

context

The application context

filter

filter of type STWContactFilterOption used to configure the filter of the search

search

keyword used to filter the contacts based on multiple criterias