Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 646 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 646 Bytes

usage

PEvent is this cross process communication tools in Android

gradle implementation 'com.github.wengeo:PEvent:v1.0.0'

// Server @MainThread @Route("/show/age") public void showAge(final Bundle in, Bundle out) { out.putString("age", "10"); String name = in.getString("age"); tv.setText(name); }

// publish ServiceManager.getInstance().publish(this);

// Client PEvent pEvent = PEvent.newBuilder(MainActivity.this) .setAuthority("com.pevent.example") .build(); Bundle bundle = pEvent.route("/show/age") .withString("age", "20") .post();