NCContactsManager.h 625 B

123456789101112131415161718192021
  1. /**
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import <Foundation/Foundation.h>
  6. extern NSString * const NCContactsManagerContactsUpdatedNotification;
  7. extern NSString * const NCContactsManagerContactsAccessUpdatedNotification;
  8. @interface NCContactsManager : NSObject
  9. + (instancetype)sharedInstance;
  10. - (void)requestContactsAccess:(void (^)(BOOL granted))completionHandler;
  11. - (BOOL)isContactAccessDetermined;
  12. - (BOOL)isContactAccessAuthorized;
  13. - (void)searchInServerForAddressBookContacts:(BOOL)forceSync;
  14. - (void)removeStoredContacts;
  15. @end