|
hyphenate_SDK3.0
3.8.1
hyphenatejavaIMSDK
|
Public 成员函数 | |
| EMVoiceMessageBody (File voiceFile, int duration) | |
| EMVoiceMessageBody (Uri voiceFile, int duration) | |
| EMVoiceMessageBody (EMAVoiceMessageBody body) | |
| int | getLength () |
| long | getFileSize () |
| String | toString () |
| int | describeContents () |
| void | writeToParcel (Parcel dest, int flags) |
Public 成员函数 继承自 com.hyphenate.chat.EMFileMessageBody | |
| EMFileMessageBody (String localPath) | |
| EMFileMessageBody (Uri localPath) | |
| EMFileMessageBody (EMAFileMessageBody body) | |
| String | getFileName () |
| void | setFileName (String fileName) |
| String | getLocalUrl () |
| void | setLocalUrl (String localUrl) |
| Uri | getLocalUri () |
| void | setLocalUrl (Uri localUrl) |
| String | getRemoteUrl () |
| void | setRemoteUrl (String remoteUrl) |
| void | setSecret (String secret) |
| String | getSecret () |
| String | displayName () |
| void | setFileLength (long length) |
| EMDownloadStatus | downloadStatus () |
| void | setDownloadStatus (EMDownloadStatus status) |
Public 成员函数 继承自 com.hyphenate.chat.EMBase< EMAMessageBody > | |
| boolean | equals (Object o) |
| int | hashCode () |
静态 Public 属性 | |
| static final Parcelable.Creator< EMVoiceMessageBody > | CREATOR |
额外继承的成员函数 | |
Protected 属性 继承自 com.hyphenate.chat.EMBase< EMAMessageBody > | |
| T | emaObject |
语音消息体
EMVoiceMessageBody body = new EMVoiceMessageBody(voiceFile, length);
| com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | File | voiceFile, |
| int | duration | ||
| ) |
| com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | Uri | voiceFile, |
| int | duration | ||
| ) |
创建一个语音消息体
| voiceFile | 语音文件uri |
| duration,语音事件长度,单位秒 |
| long com.hyphenate.chat.EMVoiceMessageBody.getFileSize | ( | ) |
获取文件大小
| int com.hyphenate.chat.EMVoiceMessageBody.getLength | ( | ) |
获得语音文件的长度 (单位是秒)
|
static |
1.8.10