Skip to content

Commit

Permalink
update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
KenChoi authored and KenChoi committed Mar 22, 2018
1 parent f24410e commit 785a473
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 14 deletions.
27 changes: 23 additions & 4 deletions Android/chatinput/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
这是一个聊天界面输入框组件,可以方便地结合 `MessageList` 使用,包含录音,选择图片,拍照等功能,提供了一些丰富的接口和回调供用户使用,
还可以选择自定义样式。

> 该组件依赖了 Glide 3.7.0
> 该组件依赖了 Glide 3.8.0
## 集成
提供了以下几种方式添加依赖,只需要选择其中一种即可。

- Gradle
```groovy
compile 'cn.jiguang.imui:chatinput:0.7.2'
compile 'cn.jiguang.imui:chatinput:0.7.3'
```

- Maven
```
<dependency>
<groupId>cn.jiguang.imui</groupId>
<artifactId>chatinput</artifactId>
<version>0.7.2</version>
<version>0.7.3</version>
<type>pom</type>
</dependency>
```
Expand All @@ -42,7 +42,7 @@ compile 'cn.jiguang.imui:chatinput:0.7.2'
```groovy
dependencies {
compile 'com.github.jpush:imui:0.7.5'
compile 'com.github.jpush:imui:0.7.6'
}
```

Expand Down Expand Up @@ -163,6 +163,24 @@ mRecordVoiceBtn.setRecordVoiceListener(new RecordVoiceListener() {
public void onCancelRecord() {

}

/**
* 录音试听界面,点击取消按钮触发
* 0.7.3 后添加此事件
*/
@Override
public void onPreviewCancel() {

}

/**
* 录音试听界面,点击发送按钮触发
* 0.7.3 后增加此事件
*/
@Override
public void onPreviewSend() {

}
});
```

Expand Down Expand Up @@ -198,6 +216,7 @@ mChatInput.setOnCameraCallbackListener(new OnCameraCallbackListener() {
public void onCancelVideoRecord() {

}

});
```

Expand Down
24 changes: 21 additions & 3 deletions Android/chatinput/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Provides several ways to add dependency, you can choose one of them:

- Via Gradle
```groovy
compile 'cn.jiguang.imui:chatinput:0.7.2'
compile 'cn.jiguang.imui:chatinput:0.7.3'
```

- Via Maven
Expand All @@ -20,7 +20,7 @@ compile 'cn.jiguang.imui:chatinput:0.7.2'
<dependency>
<groupId>cn.jiguang.imui</groupId>
<artifactId>chatinput</artifactId>
<version>0.7.2</version>
<version>0.7.3</version>
<type>pom</type>
</dependency>
```
Expand All @@ -41,7 +41,7 @@ allprojects {
```groovy
dependencies {
compile 'com.github.jpush:imui:0.7.5'
compile 'com.github.jpush:imui:0.7.6'
}
```

Expand Down Expand Up @@ -171,6 +171,24 @@ mRecordVoiceBtn.setRecordVoiceListener(new RecordVoiceListener() {
@Override
public void onCancelRecord() {

}

/**
* In preview record voice layout, fires when click cancel button
* Add since 0.7.3
*/
@Override
public void onPreviewCancel() {
}


/**
* In preview record voice layout, fires when click send button
* Add since chatinput 0.7.3
*/
@Override
public void onPreviewSend() {

}
});
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,19 @@ public void onCancelRecord() {

}

/**
* In preview record voice layout, fires when click cancel button
* Add since chatinput v0.7.3
*/
@Override
public void onPreviewCancel() {

}

/**
* In preview record voice layout, fires when click send button
* Add since chatinput v0.7.3
*/
@Override
public void onPreviewSend() {

Expand Down Expand Up @@ -376,7 +384,6 @@ public void onReceive(Context context, Intent intent) {
}



@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
Expand Down
6 changes: 3 additions & 3 deletions docs/Android/message_list_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ We have support several ways to add dependency. You can choose one of them.

- Gradle:
```groovy
compile 'cn.jiguang.imui:messagelist:0.6.7'
compile 'cn.jiguang.imui:messagelist:0.6.8'
```

- Maven:
```groovy
<dependency>
<groupId>cn.jiguang.imui</groupId>
<artifactId>messagelist</artifactId>
<version>0.6.7</version>
<version>0.6.8</version>
<type>pom</type>
</dependency>
```
Expand All @@ -35,7 +35,7 @@ allprojects {
// Add in module's build.gradle
dependencies {
compile 'com.github.jpush:imui:0.7.5'
compile 'com.github.jpush:imui:0.7.6'
}
```

Expand Down
6 changes: 3 additions & 3 deletions docs/Android/message_list_usage_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
- Gradle

```groovy
compile 'cn.jiguang.imui:messagelist:0.6.7'
compile 'cn.jiguang.imui:messagelist:0.6.8'
```

- Maven
```
<dependency>
<groupId>cn.jiguang.imui</groupId>
<artifactId>messagelist</artifactId>
<version>0.6.7</version>
<version>0.6.8</version>
<type>pom</type>
</dependency>
```
Expand All @@ -34,7 +34,7 @@ allprojects {
// module/build.gradle
dependencies {
compile 'com.github.jpush:imui:0.7.5'
compile 'com.github.jpush:imui:0.7.6'
}
```

Expand Down

0 comments on commit 785a473

Please sign in to comment.