Class MGAbstractAsyncHandler<T>

java.lang.Object
android.os.Handler
com.gemalto.mfs.mwsdk.mobilegateway.utils.MGAbstractAsyncHandler<T>

public abstract class MGAbstractAsyncHandler<T> extends android.os.Handler
MGAbstractAsyncHandler class extends the Android OS Handler and is responsible for posting the messages to the UI thread after a MG SDK task is completed. This is an abstract class. MPA is responsible to implement the abstract methods.
  • Nested Class Summary

    Nested classes/interfaces inherited from class android.os.Handler

    android.os.Handler.Callback
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    MGAbstractAsyncHandler(android.os.Handler.Callback callback)
     
    MGAbstractAsyncHandler(android.os.Looper looper)
     
    MGAbstractAsyncHandler(android.os.Looper looper, android.os.Handler.Callback callback)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    This method will be executed once the module has successfully completed an operation.

    Methods inherited from class android.os.Handler

    createAsync, createAsync, dispatchMessage, dump, getLooper, getMessageName, handleMessage, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MGAbstractAsyncHandler

      public MGAbstractAsyncHandler()
    • MGAbstractAsyncHandler

      public MGAbstractAsyncHandler(android.os.Handler.Callback callback)
    • MGAbstractAsyncHandler

      public MGAbstractAsyncHandler(android.os.Looper looper)
    • MGAbstractAsyncHandler

      public MGAbstractAsyncHandler(android.os.Looper looper, android.os.Handler.Callback callback)
  • Method Details

    • onComplete

      public abstract void onComplete(MGAsyncResult<T> result)
      This method will be executed once the module has successfully completed an operation.
      Parameters:
      result - Indicates the result of the operation.