即时通讯 IM API 参考 v1.3.2
Agora Java IM SDK
|
Public 成员函数 | |
VoiceMessageBody (File voiceFile, int duration) | |
VoiceMessageBody (Uri voiceFile, int duration) | |
int | getLength () |
long | getFileSize () |
语音消息体。
io.agora.chat.VoiceMessageBody.VoiceMessageBody | ( | File | voiceFile, |
int | duration | ||
) |
创建语音消息体。
voiceFile | 语音文件路径。 |
duration | 语音时长,单位为秒。 |
io.agora.chat.VoiceMessageBody.VoiceMessageBody | ( | Uri | voiceFile, |
int | duration | ||
) |
创建语音消息体。
voiceFile | 语音文件的资源标识符。 |
duration | 语音时长,单位为秒。 |
long io.agora.chat.VoiceMessageBody.getFileSize | ( | ) |
获取语音文件的大小。
int io.agora.chat.VoiceMessageBody.getLength | ( | ) |
获得语音时长。