一个简单的生物特征识别工具。
LABiometryError -initWithError:[这是什么?] 将生物特征识别各种错误封装成 LABiometryError。[这是什么?]
参数:
error NSError实例 NSError 必填
返回值:
LABiometryError LABiometryError实例,不可为空。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #pragma mark - LABiometryError @interface LABiometryError : NSObject @property (assign , nonatomic ) LABiometryErrorType errorCode;@property (copy , nonatomic , nullable ) NSString *errorDescription;- (instancetype _Nonnull)initWithError:(NSError *_Nonnull)error; @end
[这是什么?]
1.5~ 获得生物特征识别组件实例。
参数:
无
返回值:
LABiometryTool LABiometryTool实例,不可为空。
-ownerAuthorizationWithDescription:resultBlock: 机主身份验证,通过触控 ID或者面容ID验证。
参数:
description 描述 NSString 必填resultBlock 验证结果 LABiometryResultBlock 必填
返回值:
无
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 typedef void (^_Nonnull LABiometryResultBlock)(BOOL success, id _Nullable resultObject);+ (instancetype _Nonnull)sharedLABiometryTool; @property (assign , nonatomic ) BOOL isLABiometryDeviceAvailable;@property (copy , nonatomic , nullable ) NSString *fallbackButtonTitle;- (void )ownerAuthorizationWithDescription:(NSString *_Nonnull)description resultBlock:(LABiometryResultBlock)resultBlock;
相关