com.ibm.mobilefirstplatform.clientsdk.android.push.api

Interface MFPPushResponseListener



  • public interface MFPPushResponseListener
    This interface defines the callback methods used for reporting the status of MFPPush's async methods.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void onFailure(MFPPushException exception)
      Will be called by MFPPush when the request fails.
      void onSuccess(java.lang.Object response)
      Will be called by MFPPush when the request succeeds.
    • Method Detail

      • onSuccess

        void onSuccess(java.lang.Object response)
        Will be called by MFPPush when the request succeeds. This method is called from inside a worker thread. Hence an UI updates from within this method should be done by calling runOnUiThread() method.
        Parameters:
        response - - The success response.
      • onFailure

        void onFailure(MFPPushException exception)
        Will be called by MFPPush when the request fails. This method is called from inside a worker thread. Hence any UI updates from within this method should be done by calling runOnUiThread() method.
        Parameters:
        exception - - Exception thrown on failure response.


© Copyright IBM Corp. 2006, 2015. All Rights Reserved.