|
hyphenate_SDK3.0
3.1.4
hyphenatejavaIMSDK
|
Public 成员函数 | |
| EMVoiceMessageBody (File voiceFile, int duration) | |
| EMVoiceMessageBody (EMAVoiceMessageBody body) | |
| int | getLength () |
| String | toString () |
| int | describeContents () |
| void | writeToParcel (Parcel dest, int flags) |
静态 Public 属性 | |
| static final Parcelable.Creator< EMVoiceMessageBody > | CREATOR |
额外继承的成员函数 |
语音消息体
EMVoiceMessageBody body = new EMVoiceMessageBody(voiceFile, length);
| com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | File | voiceFile, |
| int | duration | ||
| ) |
创建一个语音消息体
| voiceFile | 语音文件路径 |
| length,语音事件长度,单位秒 |
| int com.hyphenate.chat.EMVoiceMessageBody.getLength | ( | ) |
获得语音文件的长度 (单位是秒)
|
static |
1.8.9.1