Chat SDK for Android v1.1.0
agora java chat SDK
|
Public Member Functions | |
VoiceMessageBody (File voiceFile, int duration) | |
VoiceMessageBody (Uri voiceFile, int duration) | |
VoiceMessageBody (EMAVoiceMessageBody body) | |
int | getLength () |
long | getFileSize () |
String | toString () |
int | describeContents () |
void | writeToParcel (Parcel dest, int flags) |
Static Public Attributes | |
static final Parcelable.Creator< VoiceMessageBody > | CREATOR |
The voice message body.
io.agora.chat.VoiceMessageBody.VoiceMessageBody | ( | File | voiceFile, |
int | duration | ||
) |
Creates a voice message body.
voiceFile | The path of the voice file. |
duration | The voice duration in seconds. |
io.agora.chat.VoiceMessageBody.VoiceMessageBody | ( | Uri | voiceFile, |
int | duration | ||
) |
Creates a voice message body.
voiceFile | The URI of the voice file. |
duration | The voice duration in seconds. |
long io.agora.chat.VoiceMessageBody.getFileSize | ( | ) |
Gets the size of the voice file.
int io.agora.chat.VoiceMessageBody.getLength | ( | ) |
Gets the voice duration.
|
static |