Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzue committed May 4, 2022
1 parent 7432259 commit 993654a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Kongzue Runner 是一个独立的消息事件传递总线,不依赖 Intent,

- 不需要重写任何接口,无需繁琐的设置,不需要你做任何继承或者重写接口;

- 可以对一个不存在,还没启动的Activity也能生效
- 可以对一个不存在,还没启动的 Activity 也能生效

- 跨类操作直接对内部成员赋值;

Expand Down Expand Up @@ -91,6 +91,12 @@ Runner.sendToActivity(Activity2.class, "bitmapResult", BitmapFactory.decodeResou
Runner.sendToActivity("Activity2", "bitmapResult", BitmapFactory.decodeResource(getResources(),R.mipmap.img_bug));
```

要是担心混淆导致成员名称发生变化,可以使用注解,在 Activity2 中对成员进行注解标注其接收的 key:
```java
@SenderTarget("bitmapResult")
Bitmap bitmap;
```

## 开源协议
```
Copyright Kongzue DialogX
Expand Down

0 comments on commit 993654a

Please sign in to comment.