1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #import <UIKit/UIKit.h>
- #import "BKPasscodeInputView.h"
- #import "BKTouchIDSwitchView.h"
- #import "BKTouchIDManager.h"
- typedef enum : NSUInteger {
- BKPasscodeViewControllerNewPasscodeType,
- BKPasscodeViewControllerChangePasscodeType,
- BKPasscodeViewControllerCheckPasscodeType
- } BKPasscodeViewControllerType;
- @protocol BKPasscodeViewControllerDelegate;
- @interface BKPasscodeViewController : UIViewController <BKPasscodeInputViewDelegate, BKTouchIDSwitchViewDelegate>
- @property (nonatomic, weak) id<BKPasscodeViewControllerDelegate> delegate;
- @property (nonatomic) BKPasscodeViewControllerType type;
- @property (nonatomic) BKPasscodeInputViewPasscodeStyle passcodeStyle;
- @property (nonatomic) UIKeyboardType keyboardType;
- @property (nonatomic, strong, readonly) BKPasscodeInputView *passcodeInputView;
- @property (nonatomic, strong) BKTouchIDManager *touchIDManager;
- @property BOOL inputViewTitlePassword;
- - (void)customizePasscodeInputView:(BKPasscodeInputView *)aPasscodeInputView;
- - (BKPasscodeInputView *)instantiatePasscodeInputView;
- - (void)startTouchIDAuthenticationIfPossible;
- - (void)startTouchIDAuthenticationIfPossible:(void(^)(BOOL prompted))aCompletionBlock;
- @end
- @protocol BKPasscodeViewControllerDelegate <NSObject>
- - (void)passcodeViewController:(BKPasscodeViewController *)aViewController didFinishWithPasscode:(NSString *)aPasscode;
- @optional
- - (void)passcodeViewControllerDidFailTouchIDKeychainOperation:(BKPasscodeViewController *)aViewController;
- - (void)passcodeViewController:(BKPasscodeViewController *)aViewController authenticatePasscode:(NSString *)aPasscode resultHandler:(void(^)(BOOL succeed))aResultHandler;
- - (void)passcodeViewControllerDidFailAttempt:(BKPasscodeViewController *)aViewController;
- - (NSUInteger)passcodeViewControllerNumberOfFailedAttempts:(BKPasscodeViewController *)aViewController;
- - (NSDate *)passcodeViewControllerLockUntilDate:(BKPasscodeViewController *)aViewController;
- @end
|