MainActivity

public final class MainActivity extends AppCompatActivity

Three features to navigate to the different activities

  1. Verify QR - to identify the person against the SensePrint QR and show the encrypted data

  2. Reader - to read face unencrypted data from the QR

  3. Generate QR - to generate a SensePrint QR

Constructors

Link copied to clipboard

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard

The button to start the flow for SensePrint generation

Link copied to clipboard

The button to start the flow for SensePrint reading (face unencrypted data)

Link copied to clipboard

The button to start the flow for SensePrint refresh

Link copied to clipboard

The button to navigate to the settings activity

Link copied to clipboard

The button to start the flow for SensePrint verification

Link copied to clipboard
public final static MainActivity.Companion Companion
Link copied to clipboard

Functions

Link copied to clipboard
private final CardView getBtnGenerate()

The button to start the flow for SensePrint generation

Link copied to clipboard
private final CardView getBtnReader()

The button to start the flow for SensePrint reading (face unencrypted data)

Link copied to clipboard
private final CardView getBtnRefresh()

The button to start the flow for SensePrint refresh

Link copied to clipboard

The button to navigate to the settings activity

Link copied to clipboard
private final CardView getBtnVerify()

The button to start the flow for SensePrint verification

Link copied to clipboard
private final Boolean getSwitchToOffline()
Link copied to clipboard
protected Unit onCreate(Bundle savedInstanceState)
Link copied to clipboard
protected Unit onResume()
Link copied to clipboard
private final Unit setBtnGenerate(CardView btnGenerate)

The button to start the flow for SensePrint generation

Link copied to clipboard
private final Unit setBtnReader(CardView btnReader)

The button to start the flow for SensePrint reading (face unencrypted data)

Link copied to clipboard
private final Unit setBtnRefresh(CardView btnRefresh)

The button to start the flow for SensePrint refresh

Link copied to clipboard
private final Unit setBtnSettings(AppCompatImageButton btnSettings)

The button to navigate to the settings activity

Link copied to clipboard
private final Unit setBtnVerify(CardView btnVerify)

The button to start the flow for SensePrint verification

Link copied to clipboard
private final Unit setSwitchToOffline(Boolean switchToOffline)
Link copied to clipboard
private final Unit setupComponents()

Sets up the components in the activity

Link copied to clipboard
private final Unit setUpListeners()

Sets up the listeners for the components in the activity

Link copied to clipboard

Display the sdkModeSelection dialog,In which sdk mode can be selected to either offline or online