Class ISN_CNContactStore
The object that fetches and saves contacts, groups, and containers from the user's contacts database.
Inheritance
Inherited Members
Namespace: SA.iOS.Contacts
Assembly: cs.temp.dll.dll
Syntax
public static class ISN_CNContactStore
Methods
FetchPhoneContacts(Action<ISN_CNContactsResult>, Boolean)
Fetches phone contact's list
Declaration
public static void FetchPhoneContacts(Action<ISN_CNContactsResult> callback, bool includeNotes = false)
Parameters
Type | Name | Description |
---|---|---|
Action<ISN_CNContactsResult> | callback | Callback. |
System.Boolean | includeNotes | Set to |
GetAuthorizationStatus(ISN_CNEntityType)
Returns the current authorization status to access the contact data.
Based on the authorization status, your application might display or hide its UI elements that access any Contacts API.
Declaration
public static ISN_CNAuthorizationStatus GetAuthorizationStatus(ISN_CNEntityType entityType)
Parameters
Type | Name | Description |
---|---|---|
ISN_CNEntityType | entityType | Entity type. |
Returns
Type | Description |
---|---|
ISN_CNAuthorizationStatus | The authorization status. |
RequestAccess(ISN_CNEntityType, Action<SA_Result>)
Requests access to the user's contacts.
Users are able to grant or deny access to contact data on a per-application basis. The user will only be prompted the first time access is requested, any subsequent ISN_CNContactStore calls will use the existing permissions. If this method is not used, ISN_CNContactStore may block your application while the user is asked for access permission.
Declaration
public static void RequestAccess(ISN_CNEntityType entityType, Action<SA_Result> callback)
Parameters
Type | Name | Description |
---|---|---|
ISN_CNEntityType | entityType | Entity type. |
Action<SA_Result> | callback | Callback. |
ShowContactsPickerUI(Action<ISN_CNContactsResult>)
Allows the user to select one or more contacts (or their properties) from the list of contacts displayed in the contact view controller
Declaration
public static void ShowContactsPickerUI(Action<ISN_CNContactsResult> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<ISN_CNContactsResult> | callback | Callback. |