Public 成员函数 | |
| EMVoiceMessageBody (File voiceFile, int duration) | |
| EMVoiceMessageBody (Uri voiceFile, int duration) | |
| int | getLength () |
| long | getFileSize () |
语音消息体。
| com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | File | voiceFile, |
| int | duration ) |
创建语音消息体。
| voiceFile | 语音文件路径。 |
| duration | 语音时长,单位为秒。 |
| com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | Uri | voiceFile, |
| int | duration ) |
创建语音消息体。
| voiceFile | 语音文件的资源标识符。 |
| duration | 语音时长,单位为秒。 |
| long com.hyphenate.chat.EMVoiceMessageBody.getFileSize | ( | ) |
获取语音文件的大小。
| int com.hyphenate.chat.EMVoiceMessageBody.getLength | ( | ) |
获得语音时长。