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
-
-
Constructor Summary
Constructors Constructor Description EmrtdConnectorActivity()
-
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. -
-
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 Codereason
- WebSocket Close Reasonremote
- 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 Resultexception
- non null if an Exception occurred while parsing server message
-
-
-
-