getAllContacts

open fun getAllContacts(@NonNull context: Context, filter: Int): List<ContactItem>

Get All contacts including visible company contacts and all SmartMs contacts

Return

list of ContactItem

Parameters

context

Context The application context.

filter

STWContactFilter: to filter contact

  • GROUP: to get only group contacts
  • SINGLE : to get only single contacts
  • ALL : to get All group and single contacts

open fun getAllContacts(    @NonNull context: Context,     filter: Int,     @Nullable loadCallback: STWLoadContactsCallback): AsyncTask

Async method to get All contacts including visible company contacts and all SmartMs contacts

Return

list of ContactItem

Parameters

context

Context The application context.

filter

STWContactFilter: to filter contact

  • GROUP: to get only group contacts
  • SINGLE : to get only single contacts
  • ALL : to get All group and single contacts
loadCallback

STWLoadContactsCallback: callback to handle loaded contacts