Esempio n. 1
0
 /// <summary>
 /// Requests access to the user's contacts.
 /// </summary>
 /// <param name="entityType">Entity type.</param>
 /// <param name="completionHandler">Completion handler.</param>
 public void RequestAccessForEntityType(CNEntityType entityType, Action <bool, NSError> completionHandler)
 {
     C.CNContactStore_requestAccessForEntityType(
         SelfPtr(),
         entityType,
         InternalRequestAccessForEntityTypeCallback,
         PInvokeCallbackUtil.ToIntPtr(completionHandler));
 }
Esempio n. 2
0
 internal static extern void CNContactStore_requestAccessForEntityType(HandleRef selfPointer,
                                                                       CNEntityType entityType,
                                                                       RequestAccessForEntityTypeCallback callback,
                                                                       IntPtr secondaryCallback);
Esempio n. 3
0
 internal static extern CNAuthorizationStatus CNContactStore_authorizationStatusForEntityType(CNEntityType entityType);
Esempio n. 4
0
 /// <summary>
 /// Returns the current authorization status to access the contact data.
 /// </summary>
 /// <returns>The status for entity type.</returns>
 /// <param name="entityType">Entity type.</param>
 public static CNAuthorizationStatus AuthorizationStatusForEntityType(CNEntityType entityType)
 {
     return(C.CNContactStore_authorizationStatusForEntityType(entityType));
 }