GithubHelp home page GithubHelp logo

yjsauthenticationmanager's Introduction

YJSAuthenticationManager

指纹,FaceID识别登录

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, YJSAuthState) {
    ///验证通过
    YJSAuthStateSuccess = 0,
    ///验证失败
    YJSAuthStateFail = 1,
    ///取消验证
    YJSAuthStateCancel = 2,
    ///验证回退(点击了feedBack 按钮)
    YJSAuthStateFeedBack = 3,
    ///设置不支持生物验证 【1.真的不支持;2.支持但是没有设置】
    YJSAuthStateUnEnable = 4,
    ///设备支持生物验证
    YJSAuthStateEnable = 5,
    ///错误次数过多,被锁定
    YJSAuthStateErrorLock = 6
};

@interface YJSAuthenticationManager : NSObject

/**
 单列
 
 @return instancetype
 */
+ (instancetype)sharedInstance;

/**
 判断是否支持生物验证
 
 @return 验证结果
 */
- (YJSAuthState)judgeSupportAuth;

/**
 简单验证,弹出密码框
 */
- (void)authentication;

/**
 开启验证
 
 @param successHandle 验证成功回掉
 @param failHandle 验证失败回掉
 @param feebBackTitle 失败时返回文本内容
 @param authPolicy 失败时返回文本内容
 */
- (void)authenticationWithSuccess:(void(^)(void))successHandle
                             fail:(void(^)(YJSAuthState state))failHandle
                    feedBackTitle:(NSString *)feebBackTitle
                       authPolicy:(LAPolicy)authPolicy;

@end

NS_ASSUME_NONNULL_END

yjsauthenticationmanager's People

Contributors

yuanjiashuai avatar

Stargazers

 avatar

Watchers

 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.