com.worklight.androidgap.api

Interface WLActionReceiver



  • public interface WLActionReceiver
    The WLActionReceiver interface allows every implementing object to receive actions and data from the IBM MobileFirst Platform.

    Example

    \code class MyReceiver implements WLActionReceiver{ void onActionReceived(String action, JSONObject data){ // process received action } }
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void onActionReceived(java.lang.String action, JSONObject data)
      Handle received action Note: Actions are always delivered on a background thread.
    • Method Detail

      • onActionReceived

        void onActionReceived(java.lang.String action,
                            JSONObject data)
        Handle received action Note: Actions are always delivered on a background thread. If you want to update the application user interface from the received action, do so on a main user interface thread, for example by using the Context.runOnUIThread API.
        Parameters:
        action -
        data -


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