Class EmrtdConnectorActivity

  • All Implemented Interfaces:
    android.content.ComponentCallbacks , android.content.ComponentCallbacks2 , android.view.KeyEvent.Callback , android.view.LayoutInflater.Factory , android.view.LayoutInflater.Factory2 , android.view.View.OnCreateContextMenuListener , android.view.Window.Callback , androidx.activity.FullyDrawnReporterOwner , androidx.activity.OnBackPressedDispatcherOwner , androidx.activity.contextaware.ContextAware , androidx.activity.result.ActivityResultCaller , androidx.activity.result.ActivityResultRegistryOwner , androidx.appcompat.app.ActionBarDrawerToggle.DelegateProvider , androidx.appcompat.app.AppCompatCallback , androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback , androidx.core.app.ActivityCompat.RequestPermissionsRequestCodeValidator , androidx.core.app.OnMultiWindowModeChangedProvider , androidx.core.app.OnNewIntentProvider , androidx.core.app.OnPictureInPictureModeChangedProvider , androidx.core.app.OnUserLeaveHintProvider , androidx.core.app.TaskStackBuilder.SupportParentable , androidx.core.content.OnConfigurationChangedProvider , androidx.core.content.OnTrimMemoryProvider , androidx.core.view.KeyEventDispatcher.Component , androidx.core.view.MenuHost , androidx.lifecycle.HasDefaultViewModelProviderFactory , androidx.lifecycle.LifecycleOwner , androidx.lifecycle.ViewModelStoreOwner , androidx.savedstate.SavedStateRegistryOwner , com.kinegram.android.emrtdconnector.ClosedListener , com.kinegram.android.emrtdconnector.EmrtdPassportListener , com.kinegram.android.emrtdconnector.StatusListener

    
    public class EmrtdConnectorActivity
    extends AppCompatActivity implements ClosedListener, StatusListener, EmrtdPassportListener
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onCreate(Bundle savedInstanceState)
      void handle(int code, String reason, boolean remote) As a WebSocket Connection is closed, this method will be invoked.
      void handle(EmrtdPassport emrtdPassport, JSONException exception) As the server sent the result to this client this method will be invoked.
      void handle(String status) As a status update is available this method will be invoked.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmrtdConnectorActivity

        EmrtdConnectorActivity()
    • Method Detail

      • handle

         void handle(int code, String reason, boolean remote)

        As a WebSocket Connection is closed, this method will be invoked.

        Parameters:
        code - WebSocket Close Code
        reason - WebSocket Close Reason
        remote - true if the close was issued by the remote endpoint
      • handle

         void handle(EmrtdPassport emrtdPassport, JSONException exception)

        As the server sent the result to this client this method will be invoked.

        Parameters:
        emrtdPassport - containing the Result
        exception - non null if an Exception occurred while parsing server message
      • handle

         void handle(String status)

        As a status update is available this method will be invoked.

        Parameters:
        status - new current status of the process