Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, let's say you have two services (serviceA and serviceB), we want serviceA to be triggered when we click a button, but then we want serviceB to ONLY be executed once serviceA has completed.  This article assumes that you have already created the services using the "Add Service Configuration" button on the Settings tab.Note: 

Info
In order to do this we have to create a listener that will watch for the service to complete and then perform some work.  In my experience I would recommend creating the listeners in the onStart for your application so that they are all in one place.

Here is an example of creating a listener:

...