Description
Trust Audit is an SDK in charge of registering events or customized audits, obtaining data from the moment that is required to persist.
#
ImplementationTo do add the following, at any location, to your build.gradle (project level) file:
and add the implementation to your build.gradle (app level) file:
#
InitializeIn your file that extends "Application()" within the "onCreate()" method you must initialize the SDK
#
Permissions (optional)In order for the library to work without problems, the following permissions must be added to the application. Remember: This permissions are granted from user directly, additionally to write at manifest:
Note: These permissions are optional, if they are not granted, the audits will be sent without a location from where they were issued.
#
MethodsThis section describes the methods that the library has.
#
Send Audit#
ObjectThe Transaction object is necessary to create an audit, this object contains the precise data to be sent.
Operation: Consists of the name of the operation, such as : Login audit; buy audit
Method: Refers to the name of the method that generated the audit, such as: onSuccessLogin()
Result: Data to be stored, such as: "Success Login", "Failure Login", etc.
Object: Some object that is required to be stored, such as User data or others.
#
- Case 1#
- Case 2#
- Case 3#
Save IndentityIf it is necessary to send user data, such as name, surname, ID, etc, they can be saved using the saveIndentity method. once the user data is stored, the next audits will include this user data
#
ObjectThe Identity object stores basic user data such as
Name: username
Lastname: user's last name
Email: user email
Dni: unique identifier of the user