getCompanyContacts

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

Get only visible company 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 getCompanyContacts(@NonNull context: Context, @Nullable filter: STWContactFilterOption): List<ContactItem>
open fun getCompanyContacts(    @NonNull context: Context,     @Nullable filtersList: STWContactFilterOption,     @Nullable keyWord: String): List<ContactItem>


open fun getCompanyContacts(    @NonNull context: Context,     filter: Int,     @Nullable keyWord: String): List<ContactItem>

Get only visible company contacts matching searchKeyWord

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
keyWord

String : to get only contacts matching this keyword. put empty string to get all company contacts


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

Async method to get only visible company 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