Class AbstractAsyncHandler<T>

java.lang.Object
android.os.Handler
com.gemalto.mfs.mwsdk.utils.async.AbstractAsyncHandler<T>
Type Parameters:
T - The expected data type of the result of the operation

public abstract class AbstractAsyncHandler<T> extends android.os.Handler
Abstract class that is used throughout the SDK to handle the result of an asynchronous operation. When the SDK has performs asynchronous operation, the result is returned to the calling thread through this handler. It is then up to the implementor to process the AsyncResult based on the operation performed.
  • Nested Class Summary

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

    android.os.Handler.Callback
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    abstract void
    Method that 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

    • AbstractAsyncHandler

      public AbstractAsyncHandler()
      Constructor
    • AbstractAsyncHandler

      public AbstractAsyncHandler(android.os.Handler.Callback callback)
      Constructor
      Parameters:
      callback - the handler callback
    • AbstractAsyncHandler

      public AbstractAsyncHandler(android.os.Looper looper)
      Constructor
      Parameters:
      looper - the looper
    • AbstractAsyncHandler

      public AbstractAsyncHandler(android.os.Looper looper, android.os.Handler.Callback callback)
      Constructor
      Parameters:
      looper - the looper
      callback - the handler callback
  • Method Details

    • onComplete

      public abstract void onComplete(AsyncResult<T> result)
      Method that will be executed once the module has successfully completed an operation.
      Parameters:
      result - the asynchronous result