hyphenate_SDK3.0
3.8.6.1
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 |
Voice message body
EMVoiceMessageBody body = new EMVoiceMessageBody(voiceFile, length);
com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | File | voiceFile, |
int | duration | ||
) |
Create a voice message body
voiceFile | voice file |
duration | voice clip length, in seconds |
com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody | ( | Uri | voiceFile, |
int | duration | ||
) |
Create a voice message body
voiceFile | Voice uri |
duration | Voice clip length, in seconds |
long com.hyphenate.chat.EMVoiceMessageBody.getFileSize | ( | ) |
get the video file size
int com.hyphenate.chat.EMVoiceMessageBody.getLength | ( | ) |
Get the length of the voice file, in seconds
|
static |