Coder Social home page Coder Social logo

ajsecuritybaseutility's Introduction

AJSecurityBaseUtility

对iOS生物识别API的封装。可以直接使用

用时可以使用 :

pod 'AJSecurityBaseUtility'

采用单例的方法封装 。。。。。具体实现逻辑请看源码吧!

一. 调用方法
- (void)evaluatePolicy:(NSString *)localizedReasonfallbackTitle:(NSString *)title

SuccesResult:(void(^)(void))backSucces

FailureResult:(TouchIdValidationFailureBack)backFailure;

此方法直接调用系统的生物识别模块,前提是用户已经在系统中打开,否则调用失败。

二. 对手机支持的生物识别进行一系列判断的方法封装
  • 是否支持TouchID或者FaceID

    - (BOOL)isCanUseBiometrics;
  • 是否是FaceID

    - (BOOL)isFaceID;
  • 生物识别开关是否打开

    -(BOOL)isBiometricsOpened;
  • 是否开启生物识别

    - (void)biometricsWith:(BOOL)open;
  • 返回设备上生物识别的错误状态

    - (LAError)deviceBiometricsState;
  • 判断指纹库是否变化

    - (BOOL)biometricsLibraryDidChanged NS_AVAILABLE(10_11, 9_0);

ajsecuritybaseutility's People

Contributors

ts-sunshine avatar

Stargazers

YJ avatar  avatar  avatar bingo avatar  avatar  avatar  avatar Michael.Yang avatar C_wenqing avatar  avatar wuxiayu avatar 储后义 avatar

Watchers

James Cloos avatar Michael.Yang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.