Skip to content

Instantly share code, notes, and snippets.

@rpetrich
Created August 2, 2015 21:22
Show Gist options
  • Save rpetrich/7c2849a6fdf254472456 to your computer and use it in GitHub Desktop.
Save rpetrich/7c2849a6fdf254472456 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