hyphenate_SDK3.0 4.0.0
hyphenate java IM SDK
|
Public Member Functions | |
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) |
Static Public Attributes | |
static final Parcelable.Creator< EMVoiceMessageBody > | CREATOR |
The voice message body.
com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | File | voiceFile, |
int | duration | ||
) |
Creates a voice message body.
voiceFile | The path of the voice file. |
duration | The voice duration in seconds. |
com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | Uri | voiceFile, |
int | duration | ||
) |
Creates a voice message body.
voiceFile | The URI of the voice file. |
duration | The voice duration in seconds. |
long com.hyphenate.chat.EMVoiceMessageBody.getFileSize | ( | ) |
Gets the size of the voice file.
int com.hyphenate.chat.EMVoiceMessageBody.getLength | ( | ) |
Gets the voice duration.
|
static |