Inherits from NSObject
Declared in BFTouchID.h

Overview

This class adds some useful methods to use TouchID

Class Methods

showTouchIDAuthenticationWithReason:completion:

+ (void)showTouchIDAuthenticationWithReason:(NSString *_Nonnull)reason completion:(void ( ^ _Nullable ) ( TouchIDResult result ))completion
Discussion

Shows the TouchID alert

Parameters

reason

Text to show in the alert

completion

Completion handler. It returns the TouchID result, from the TouchIDResult enum

Declared In

BFTouchID.h

showTouchIDAuthenticationWithReason:fallbackTitle:completion:

+ (void)showTouchIDAuthenticationWithReason:(NSString *_Nonnull)reason fallbackTitle:(NSString *_Nullable)fallbackTitle completion:(void ( ^ _Nullable ) ( TouchIDResult result ))completion
Discussion

Shows the TouchID alert

Parameters

reason

Text to show in the alert

fallbackTitle

Default title “Enter Password” is used when this property is left nil. If set to empty string, the button will be hidden

completion

Completion handler. It returns the TouchID result, from the TouchIDResult enum

Declared In

BFTouchID.h