|
| EMVoiceMessageBody (File voiceFile, int duration) |
|
| EMVoiceMessageBody (EMAVoiceMessageBody body) |
|
int | getLength () |
|
String | toString () |
|
int | describeContents () |
|
void | writeToParcel (Parcel dest, int flags) |
|
Public Member Functions inherited from com.hyphenate.chat.EMFileMessageBody |
| EMFileMessageBody (String localPath) |
|
| EMFileMessageBody (EMAFileMessageBody body) |
|
String | getFileName () |
|
void | setFileName (String fileName) |
|
String | getLocalUrl () |
|
void | setLocalUrl (String localUrl) |
|
String | getRemoteUrl () |
|
void | setRemoteUrl (String remoteUrl) |
|
void | setSecret (String secret) |
|
String | getSecret () |
|
String | displayName () |
|
void | setFileLength (long length) |
|
EMDownloadStatus | downloadStatus () |
|
void | setDownloadStatus (EMDownloadStatus status) |
|
boolean | equals (Object o) |
|
int | hashCode () |
|
the voice message body class
EMVoiceMessageBody body = new EMVoiceMessageBody(voiceFile, length);
com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody |
( |
File |
voiceFile, |
|
|
int |
duration |
|
) |
| |
create a voice message body
- Parameters
-
voiceFile | voice file |
duration | voice clip length, in seconds |
int com.hyphenate.chat.EMVoiceMessageBody.getLength |
( |
| ) |
|
get the length of the voice time, unit s
- Returns
final Parcelable.Creator<EMVoiceMessageBody> com.hyphenate.chat.EMVoiceMessageBody.CREATOR |
|
static |
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMVoiceMessageBody.java