Nothing Special   »   [go: up one dir, main page]

All Projects → anitaa1990 → Biometric Auth Sample

anitaa1990 / Biometric Auth Sample

Add Biometric Authentication to any Android app

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Biometric Auth Sample

Foodium
It simply loads Posts data from API and stores it in persistence storage (i.e. SQLite Database). Posts will be always loaded from local database. Remote data (from API) and Local data is always synchronized.
Stars: ✭ 1,940 (+736.21%)
Mutual labels:  android-architecture-components
Newsapp
A Sample News App written in Kotlin using Android Architecture Components, MVVM
Stars: ✭ 179 (-22.84%)
Mutual labels:  android-architecture-components
Mvvmframe
🏰 MVVMFrame for Android 是一个基于Google官方推出的Architecture Components dependencies(现在叫JetPack){ Lifecycle,LiveData,ViewModel,Room } 构建的快速开发框架。有了MVVMFrame的加持,从此构建一个MVVM模式的项目变得快捷简单。
Stars: ✭ 218 (-6.03%)
Mutual labels:  android-architecture-components
Mvp Architecture Components
This is a sample project, showing the connection between Android Architecture Components and MVP pattern.
Stars: ✭ 143 (-38.36%)
Mutual labels:  android-architecture-components
Docker Android Sdk
Stars: ✭ 171 (-26.29%)
Mutual labels:  android-sdk
Swarmer
Reactive tool to create and start multiple Android Emulators in parallel.
Stars: ✭ 203 (-12.5%)
Mutual labels:  android-sdk
Restcomm Android Sdk
Android Mobile SDK to easily integrate communication features (WebRTC, messaging, presence, voice, video, screensharing) based on RestComm into native Mobile Applications
Stars: ✭ 139 (-40.09%)
Mutual labels:  android-sdk
Material Backdrop
A simple solution for implementing Backdrop pattern for Android
Stars: ✭ 221 (-4.74%)
Mutual labels:  android-sdk
Qiscus Sdk Android
Qiscus provide everything you need to power up your app with chats. And it's now made simple.
Stars: ✭ 175 (-24.57%)
Mutual labels:  android-sdk
Venom
A lightweight tool that simplifies testing of the process death scenario.
Stars: ✭ 218 (-6.03%)
Mutual labels:  android-sdk
Vassonic
VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform.
Stars: ✭ 11,466 (+4842.24%)
Mutual labels:  android-sdk
Awesomedialog
A Beautiful Dialog Library for Kotlin Android
Stars: ✭ 163 (-29.74%)
Mutual labels:  android-sdk
Optivideoeditor For Android
Native Video editor : Video trim, Audio, Video merge, Slow and fast motion, Text and image, etc...
Stars: ✭ 209 (-9.91%)
Mutual labels:  android-sdk
Popularmovies
🎥 Movie discovery app showcasing Android best practices with Google's recommended architecture: MVVM + Repository + Offline support + Android Architecture Components + Paging library & Retrofit2.
Stars: ✭ 142 (-38.79%)
Mutual labels:  android-architecture-components
Realstuff
一个看妹纸与开发资讯的Android APP,具有本地缓存、分享与添加收藏的功能,新手向大神学习的练手项目,来自代码家的API http://gank.io
Stars: ✭ 219 (-5.6%)
Mutual labels:  android-architecture-components
Mvvm
A sample Android application using MVVM, Clean Architecture, Android Architecture Components
Stars: ✭ 141 (-39.22%)
Mutual labels:  android-architecture-components
Moviehunt
Movie Android App written in Kotlin, MVVM, RxJava, Android Architecture Components.
Stars: ✭ 199 (-14.22%)
Mutual labels:  android-architecture-components
Why bump android minsdk
Why you should bump your Android app minsdk?
Stars: ✭ 226 (-2.59%)
Mutual labels:  android-sdk
Modern Android Development
Modern Android Development tools & key points
Stars: ✭ 219 (-5.6%)
Mutual labels:  android-sdk
Cw Androidarch
Source Code for the Book "Android's Architecture Components"
Stars: ✭ 213 (-8.19%)
Mutual labels:  android-architecture-components

Biometric-Auth-Sample

Add Biometric Authentication to any Android app

This library provides an easy way to implement fingerprint authentication without having to deal with all the boilerplate stuff going on inside.

API

How to integrate the library in your app?

Gradle Dependecy
dependencies {
        implementation(group: 'com.an.biometric', name: 'biometric-auth', version: '0.1.0', ext: 'aar', classifier: '')
}

Usage

new BiometricManager.BiometricBuilder(MainActivity.this)
                        .setTitle("Add a title")
                        .setSubtitle("Add a subtitle")
                        .setDescription("Add a description")
                        .setNegativeButtonText("Add a cancel button")
                        .build()
                        .authenticate(biometricCallback);

The BiometricCallback class has the following callback methods:

new BiometricCallback() {
              @Override
              public void onSdkVersionNotSupported() {
                     /*  
                      *  Will be called if the device sdk version does not support Biometric authentication
                      */
               }

               @Override
               public void onBiometricAuthenticationNotSupported() {
                     /*  
                      *  Will be called if the device does not contain any fingerprint sensors 
                      */
               }

               @Override
               public void onBiometricAuthenticationNotAvailable() {
                    /*  
                     *  The device does not have any biometrics registered in the device.
                     */
               }

               @Override
               public void onBiometricAuthenticationPermissionNotGranted() {
                      /*  
                       *  android.permission.USE_BIOMETRIC permission is not granted to the app
                       */
               }

               @Override
               public void onBiometricAuthenticationInternalError(String error) {
                     /*  
                      *  This method is called if one of the fields such as the title, subtitle, 
                      * description or the negative button text is empty
                      */
               }

               @Override
               public void onAuthenticationFailed() {
                      /*  
                       * When the fingerprint doesn’t match with any of the fingerprints registered on the device, 
                       * then this callback will be triggered.
                       */
               }

               @Override
               public void onAuthenticationCancelled() {
                       /*  
                        * The authentication is cancelled by the user. 
                        */
               }

               @Override
               public void onAuthenticationSuccessful() {
                        /*  
                         * When the fingerprint is has been successfully matched with one of the fingerprints   
                         * registered on the device, then this callback will be triggered. 
                         */
               }

               @Override
               public void onAuthenticationHelp(int helpCode, CharSequence helpString) {
                         /*  
                          * This method is called when a non-fatal error has occurred during the authentication 
                          * process. The callback will be provided with an help code to identify the cause of the 
                          * error, along with a help message.
                          */
                }

                @Override
                public void onAuthenticationError(int errorCode, CharSequence errString) {
                         /*  
                          * When an unrecoverable error has been encountered and the authentication process has 
                          * completed without success, then this callback will be triggered. The callback is provided 
                          * with an error code to identify the cause of the error, along with the error message. 
                          */
                 }
              });

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].