getSections
Get sections for full alphabetical sequence of contacts from the given source.
Return
Array of section titles (based on current locale) and index of the first contact which belongs to this section.
Parameters
source
The contact source to query.
open fun getSections(@NonNull source: ContactSourceType, @NonNull query: ContactQuery): Array<ContactSection>
Get sections for full alphabetical sequence of contacts from the given source
Return
Array of section titles (based on current locale) and index of the first contact which belongs to this section.
Parameters
source
The contact source to query.
query
constraints for iteration
open fun getSections(@NonNull source: ContactSourceType, @NonNull ids: Set<String>): Array<ContactSection>
Get sections for full alphabetical sequence of contacts from the given source.
Return
Array of section titles (based on current locale) and index of the first contact which belongs to this section.
Parameters
source
The contact source to query.
ids
IDs to consider.