Class AN_ContactsContract
The contract between the contacts provider and applications. Contains definitions for the supported URIs and columns.
Inheritance
Inherited Members
Namespace: SA.Android.Contacts
Assembly: cs.temp.dll.dll
Syntax
public static class AN_ContactsContract
Methods
GetContactsCount()
Returns amount of records inside user phone book.
Declaration
public static int GetContactsCount()
Returns
Type | Description |
---|---|
System.Int32 | Amount of records inside user phone book. |
Retrieve(Int32, Int32)
Method will retrieve contacts from user phone address book.
Declaration
public static AN_ContactsResult Retrieve(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | index of offset. |
System.Int32 | count | count of contacts to load. |
Returns
Type | Description |
---|---|
AN_ContactsResult |
RetrieveAll()
Method will retrieve all contacts from user phone address book.
Declaration
public static AN_ContactsResult RetrieveAll()
Returns
Type | Description |
---|---|
AN_ContactsResult |
RetrieveAllAsync(Action<AN_ContactsResult>, Boolean)
Method will retrieve all contacts async from user phone address book.
Declaration
public static void RetrieveAllAsync(Action<AN_ContactsResult> callback, bool checkForPermission = true)
Parameters
Type | Name | Description |
---|---|---|
Action<AN_ContactsResult> | callback | address book contacts list will be delivered via this callback |
System.Boolean | checkForPermission | Will automatically check for READ_CONTACTS permissions. Please note That AndroidX lib is required to preform the permission check. |
RetrieveAsync(Int32, Int32, Action<AN_ContactsResult>, Boolean)
Method will retrieve contacts async from user phone address book.
Declaration
public static void RetrieveAsync(int index, int count, Action<AN_ContactsResult> callback, bool checkForPermission = true)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | index of offset |
System.Int32 | count | count of contacts to load |
Action<AN_ContactsResult> | callback | address book contacts list will be delivered via this callback |
System.Boolean | checkForPermission | Will automatically check for READ_CONTACTS permissions. Please note That AndroidX lib is required to preform the permission check. |