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 theAsyncResult
based on the operation performed.
-
-
Constructor Summary
Constructors Constructor Description AbstractAsyncHandler()
ConstructorAbstractAsyncHandler(android.os.Handler.Callback callback)
ConstructorAbstractAsyncHandler(android.os.Looper looper)
ConstructorAbstractAsyncHandler(android.os.Looper looper, android.os.Handler.Callback callback)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
onComplete(AsyncResult<T> result)
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
-
-
-
-
Constructor Detail
-
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 loopercallback
- the handler callback
-
-
Method Detail
-
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
-
-