Skip to content

Instantly share code, notes, and snippets.

View NewtronLabs's full-sized avatar

Newtron Labs NewtronLabs

View GitHub Profile
@NewtronLabs
NewtronLabs / IpcEventBus-example1.java
Created June 28, 2020 21:53
IpcEventBus-example1
public class Listener implements IIpcEventBusConnectionListener, IIpcEventBusObserver {
public Listener() {
String targetApp = "com.packagename";
IIpcEventBusConnector connector =
ConnectorFactory.getInstance().buildConnector(context, this, targetApp);
connector.startConnection();
}
@NewtronLabs
NewtronLabs / IpcEventBus-example2.kt
Created June 28, 2020 21:54
IpcEventBus-example2
IpcEventBus.getInstance().postEvent(MyEvent())
@NewtronLabs
NewtronLabs / IpcEventBus-example2.java
Created June 28, 2020 21:54
IpcEventBus-example2
IpcEventBus.getInstance().postEvent(new MyEvent());
@NewtronLabs
NewtronLabs / IpcEventBus-conclusion.java
Created June 28, 2020 22:08
IpcEventBus-conclusion.java
public class EventExample extends EventIpcSimple {
private IData mData;
public EventExample(IData data) {
mData = data;
}
EventExample(Parcel in) {
readFromParcel(in);
}
@NewtronLabs
NewtronLabs / IpcEventBus-conclusion.kt
Created June 28, 2020 22:09
IpcEventBus-conclusion.kt
class EventExample : EventIpcSimple {
private var mData: IData? = null
constructor(data: IData?) {
mData = data
}
internal constructor(`in`: Parcel) {
readFromParcel(`in`)
}
@NewtronLabs
NewtronLabs / support-us.md
Last active August 23, 2021 20:57
Support us

Support Us

Please support the continued development of these libraries. We host and develop these libraries for free. Any support is deeply appriciated. Thank you!

Support us

BTC Address: 39JmAfnNhaEPKz5wjQjQQj4jcv9BM11NQb