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
ConstructorsConstructorDescriptionConstructorAbstractAsyncHandler(android.os.Handler.Callback callback) ConstructorAbstractAsyncHandler(android.os.Looper looper) ConstructorAbstractAsyncHandler(android.os.Looper looper, android.os.Handler.Callback callback) Constructor -
Method Summary
Modifier and TypeMethodDescriptionabstract voidonComplete(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 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 loopercallback- the handler callback
-
-
Method Details
-
onComplete
Method that will be executed once the module has successfully completed an operation.- Parameters:
result- the asynchronous result
-