Skip to content

Post Back

Newtron Labs edited this page Mar 21, 2017 · 2 revisions

After you have connected to another process using the connector.startConnection() you may post back directly to that process.

@Override
public void onConnected(IIpcEventBusConnector connector)
{
    connector.postBack(new ExampleEvent());
}

If the other process is listing to post backs then it will receive the event. The way to register for post backs is:

IpcEventBus.getInstance().registerPostBackObserver(this);

Clone this wiki locally