EasyFingerPrint

Additional

Language
Kotlin
Version
1.0.1 (Aug 1, 2018)
Created
Jul 30, 2018
Updated
Jun 29, 2019
Owner
Henrique Menezes (HenriqueMachine)
Contributors
Rafael Almeida Barbosa (RafaelBarbosatec)
Henrique Menezes (HenriqueMachine)
2
Activity
Badge
Generate
Download
Source code
APK file

Show card

EasyFingerPrint

EasyFingerPrint It is a digital reading library that has been designed with the focus of facilitating the implementation of FingerPrint in a simple and clear way without taking out its robustness and dynamism, besides following all the guideline that the Material Design provides. EasyFingerPrint already comes with a layout file ready and fully customizable.

#FingerPrint / #MaterialDesign / #MakeItEasy

Add it to your build.gradle with:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

and:

dependencies {
     implementation "com.android.support:design:{version}"
     implementation 'com.github.HenriqueMachine:EasyFingerPrint:1.0.1'
}

configure:

EasyFingerPrint(this)
                    .setTittle("Sign in")
                    .setSubTittle("account@account.com.br")
                    .setDescription("In order to use the Fingerprint sensor we need your authorization first.e")
                    .setColorPrimary(R.color.colorPrimary)
                    .setIcon(ContextCompat.getDrawable(this,R.mipmap.ic_launcher_round))
                    .setListern(object : EasyFingerPrint.ResultFingerPrintListern{
                        override fun onError(mensage: String, code: Int) {

                            when(code){
                                EasyFingerPrint.CODE_ERRO_CANCEL -> { } // TO DO
                                EasyFingerPrint.CODE_ERRO_GREATER_ANDROID_M -> { } // TO DO
                                EasyFingerPrint.CODE_ERRO_HARDWARE_NOT_SUPPORTED -> { } // TO DO
                                EasyFingerPrint.CODE_ERRO_NOT_ABLED -> { } // TO DO
                                EasyFingerPrint.CODE_ERRO_NOT_FINGERS -> { } // TO DO
                                EasyFingerPrint.CODE_NOT_PERMISSION_BIOMETRIC -> { } // TO DO
                            }

                            Toast.makeText(this@MainActivity,"Error: $mensage / $code",Toast.LENGTH_SHORT).show()
                        }

                        override fun onSucess(cryptoObject: FingerprintManagerCompat.CryptoObject?) {
                            Toast.makeText(this@MainActivity,"Sucess",Toast.LENGTH_SHORT).show()
                        }

                    })
                    .startScan()

License

This library is licensed under the Apache Software License, Version 2.0.

See LICENSE for full of the license text.

Copyright (C) 2018 Henrique Paix√£o

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.