Please support the continued development of these libraries. We host and develop these libraries for free. Any support is deeply appriciated. Thank you!
BTC Address: 39JmAfnNhaEPKz5wjQjQQj4jcv9BM11NQb
public class Listener implements IIpcEventBusConnectionListener, IIpcEventBusObserver { | |
public Listener() { | |
String targetApp = "com.packagename"; | |
IIpcEventBusConnector connector = | |
ConnectorFactory.getInstance().buildConnector(context, this, targetApp); | |
connector.startConnection(); | |
} |
IpcEventBus.getInstance().postEvent(MyEvent()) |
IpcEventBus.getInstance().postEvent(new MyEvent()); |
public class EventExample extends EventIpcSimple { | |
private IData mData; | |
public EventExample(IData data) { | |
mData = data; | |
} | |
EventExample(Parcel in) { | |
readFromParcel(in); | |
} |
class EventExample : EventIpcSimple { | |
private var mData: IData? = null | |
constructor(data: IData?) { | |
mData = data | |
} | |
internal constructor(`in`: Parcel) { | |
readFromParcel(`in`) | |
} |