0
我正在關注此職位IPC in Android using GreenRobot eventbus關於IPCEventBus的答案。如何使用IPC EventBus發佈事件?
public class Listener implements IIpcEventBusConnectionListener, IIpcEventBusObserver {
public Listener() {
IIpcEventBusConnector connector =
ConnectorFactory.getInstance().buildConnector(context, this, "com.blueengine.login");
connector.startConnection();
}
@Override
public void onConnected(IIpcEventBusConnector connector) {
connector.registerObserver(this);
}
@Override
public void onEvent(IEventIpc event) {
}
@Override
public void onDisconnected(IIpcEventBusConnector connector) {
}
}
然後在我的登錄應用
我想送一個事件稱爲UserLoggin。我該怎麼做呢?
public class UserLoggin implements IEventIpc
{
}