Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created October 7, 2021 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vestrel00/58b932e8f1d7a07f52ecbdefce52635c to your computer and use it in GitHub Desktop.
Save vestrel00/58b932e8f1d7a07f52ecbdefce52635c to your computer and use it in GitHub Desktop.
A query that searches for Contacts, yielding the exact same results as the native Contacts app
val contacts = Contacts(context)
.broadQuery()
.whereAnyContactDataPartiallyMatches(searchText)
.find()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment