searchCompanyContactsAsFlow

fun searchCompanyContactsAsFlow(    context: Context,     filterOption: STWContactFilterOption? = null,     search: String? = null): Flow<List<STWContact>?>

This method will first emit the filtered Company contacts from the local database and then request the filtered company contacts from the remote server, it will then emit the result as soon as it is received.

Return

Flow of list 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