Skip to content

Instantly share code, notes, and snippets.

@iMokhles
Forked from rpetrich/BioLockdown.h
Created May 24, 2016 00:11
Show Gist options
  • Save iMokhles/4cc45a32197a27456e2975a760d247cd to your computer and use it in GitHub Desktop.
Save iMokhles/4cc45a32197a27456e2975a760d247cd to your computer and use it in GitHub Desktop.
BioLockdown API
#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>
@class SBApplication, CKConversation;
__attribute__((visibility("hidden")))
@interface BioLockdownController : NSObject
+ (BioLockdownController *)sharedController;
- (BOOL)requiresAuthenticationForIdentifier:(NSString *)identifier;
- (BOOL)requiresAuthenticationForApplication:(SBApplication *)application;
- (BOOL)requiresAuthenticationForRecord:(ABRecordRef)record;
- (BOOL)authenticateForIdentifier:(NSString *)identifier actionDescription:(NSString *)actionDescription completion:(dispatch_block_t)completion failure:(dispatch_block_t)failure;
- (BOOL)authenticateForApplication:(SBApplication *)application actionText:(NSString *)actionText completion:(dispatch_block_t)completion failure:(dispatch_block_t)failure;
- (BOOL)authenticateForSwitchIdentifier:(NSString *)switchIdentifier actionText:(NSString *)actionText completion:(dispatch_block_t)completion failure:(dispatch_block_t)failure;
- (BOOL)authenticateForRecord:(ABRecordRef)record actionText:(NSString *)actionText completion:(dispatch_block_t)completion failure:(dispatch_block_t)failure;
- (NSArray *)knownNetworks;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment