Gallagher Mobile Connect SDK
Public Member Functions | List of all members
com.gallagher.security.mobileaccess.AutomaticAccessListener Interface Reference

Inherits com.gallagher.security.mobileaccess.AccessListener.

Public Member Functions

void onReturnToReaderRequired (Reader reader)
 
void onReturnedToReader (Reader reader)
 
- Public Member Functions inherited from com.gallagher.security.mobileaccess.AccessListener
void onAccessStarted (@NonNull Reader reader)
 
void onAccessCompleted (@NonNull Reader reader, @Nullable AccessResult accessResult, @Nullable ReaderConnectionError error)
 

Detailed Description

Callback interface used to notify about an Access Attempts which happen automatically (i.e. in response to the user physically placing their phone next to a reader, rather than by interacting with the software)

Member Function Documentation

◆ onReturnedToReader()

void com.gallagher.security.mobileaccess.AutomaticAccessListener.onReturnedToReader ( Reader  reader)

Only relevant for NFC access requests. Called after NfcAccessListener::onReturnToReaderRequired(Reader) when the SDK has detected that the mobile device is able to communicate via NFC again. You can use it to hide the "Return phone to reader" screen that you displayed above

Parameters
readerThe reader that the user has returned their mobile device to

◆ onReturnToReaderRequired()

void com.gallagher.security.mobileaccess.AutomaticAccessListener.onReturnToReaderRequired ( Reader  reader)

Only relevant for NFC access requests. This happens when the SDK detects that the user has pulled their mobile device away from the reader partway through an access transaction, and should put it back. Typically they will do this to enter a PIN or fingerprint. You should show a screen that says something similar to "Return phone to reader" such as Mobile Connect does in response to this callback

Parameters
readerThe reader that the user is required to return their mobile device to

The documentation for this interface was generated from the following file: