Contacts

Результат работы всех методов Result

contactsGet([list attributes])

возвращает список контактов

contactsGetAttributes()

возвращает список доступных атрибутов контаков

contactsGetById(int id[, list attributes])

возвращает контакт по иди

contactsGetCount()

возвращает общее количество контактов

contactsGetIds()

возвращает список иди, контактов

pickContact()

отображает окно со списком контаков, с возможностью поиска, возвращает выбранный контакт

>>> droid.pickContact().result
{
    u'flags': 1,
    u'extras': None,
    u'data': u'content://contacts/people/1',
    u'categories': None
}
pickPhone()

отображает окно со списком контаков и с номерами телефонов, с возможностью поиска, возвращает номер телефона выбранного контакта

>>> droid.pickPhone()
123
queryAttributes(str uri)
Parameters

uri (str) – The URI, using the content:// scheme, for the content to retrieve

Content Resolver Query Attributes

queryContent(**kwargs)
Parameters
  • uri (str) – The URI, using the content:// scheme, for the content to retrieve.,

  • attributes (list) – не обязательный, A list of which columns to return. Passing null will return all columns,

  • selection (str) – не обязательный, A filter declaring which rows to return,

  • selectionArgs (list) – не обязательный, You may include ?s in selection, which will be replaced by the values from selectionArgs,

  • order (str) – не обязательный, How to order the rows

Content Resolver Query