the voice message body class
EMVoiceMessageBody body = new EMVoiceMessageBody(voiceFile, length);
◆ EMVoiceMessageBody() [1/2]
com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody |
( |
File |
voiceFile, |
|
|
int |
duration |
|
) |
| |
create a voice message body
- Parameters
-
voiceFile | voice file |
duration | voice clip length, in seconds |
◆ EMVoiceMessageBody() [2/2]
com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody |
( |
Uri |
voiceFile, |
|
|
int |
duration |
|
) |
| |
create a voice message body
- Parameters
-
voiceFile | voice uri |
duration | voice clip length, in seconds |
◆ getFileSize()
long com.hyphenate.chat.EMVoiceMessageBody.getFileSize |
( |
| ) |
|
get the video file size
- Returns
◆ getLength()
int com.hyphenate.chat.EMVoiceMessageBody.getLength |
( |
| ) |
|
get the length of the voice time, unit s
- Returns
◆ CREATOR
final Parcelable.Creator<EMVoiceMessageBody> com.hyphenate.chat.EMVoiceMessageBody.CREATOR |
|
static |
Initial value:
}
}
}
EMVoiceMessageBody(File voiceFile, int duration)
Definition: EMVoiceMessageBody.java:51
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMVoiceMessageBody.java