You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
michael edited this page Nov 9, 2015
·
2 revisions
Provides access to contacts related functionality.
contactsGet
Returns a List of all contacts.
attributes (JSONArray) (optional)
returns: (List) a List of contacts as Maps
contactsGetAttributes
Returns a List of all possible attributes for contacts.
contactsGetById
Returns contacts by ID.
id (Integer) attributes (JSONArray) (optional)
contactsGetCount
Returns the number of contacts.
contactsGetIds
Returns a List of all contact IDs.
pickContact
Displays a list of contacts to pick from.
returns: (Intent) A map of result values.
pickPhone
Displays a list of phone numbers to pick from.
returns: (String) The selected phone number.
queryAttributes
Content Resolver Query Attributes
uri (String) The URI, using the content:// scheme, for the content to retrieve.
returns: (JSONArray) a list of available columns for a given content uri
queryContent
Content Resolver Query
uri (String) The URI, using the content:// scheme, for the content to retrieve.
attributes (JSONArray) A list of which columns to return. Passing null will return all columns (optional)
selection (String) A filter declaring which rows to return (optional)
selectionArgs (JSONArray) You may include ?s in selection, which will be replaced by the values from selectionArgs (optional)
order (String) How to order the rows (optional)
returns: (List) result of query as Maps
Exactly as per ContentResolver.query