|
TechTrue® Android SDK
V1.3.7 Android SDK for TechTrue®'s face recognition
|
This documentation regards to the Android AAR library container TechTrue's Face Recognition software.
To begin with the SDK, see br.com.techmag.ttface.TTFaceRecognitionService.
To be able to use this SDK, you must have an application key registered at TechTrue's platform. Then, you must add this key to your app using one of the following options:
Using a file inside your app's root folder:
This file must contain only the application key and must be named as app_key.txt, like the example below:
One can use the following snippet to programmatically set the application key into the SDK:
Using Android's string resources, registered to your app, like the example below:
This file is usually placed at res/values/*.xml inside your app's project.
If the device cannot be authenticated, SDK instance will be null and the instantiation method will throw an exception with br.com.techmag.ttface.TTErrorCodes.TTFACEAPI_E_DEVICENOTACTIVATED.
The authentication flow requires internet connection for the app's first-time execution. After the first run, no internet requests will be done as long as the app is not uninstalled.