Class 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 in complete. This is an abstract class. The MPA is responsible to implement the abstract methods.
    • Nested Class Summary

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

        android.os.Handler.Callback
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void onComplete​(MGAsyncResult<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
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • onComplete

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