hyphenate_SDK3.0  3.5.6
hyphenatejavaIMSDK
Public Member Functions | Static Public Attributes | List of all members
com.hyphenate.chat.EMVoiceMessageBody Class Reference
Inheritance diagram for com.hyphenate.chat.EMVoiceMessageBody:
Inheritance graph
[legend]
Collaboration diagram for com.hyphenate.chat.EMVoiceMessageBody:
Collaboration graph
[legend]

Public Member Functions

 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)
 
- Public Member Functions inherited from com.hyphenate.chat.EMBase< EMAMessageBody >
boolean equals (Object o)
 
int hashCode ()
 

Static Public Attributes

static final Parcelable.Creator< EMVoiceMessageBodyCREATOR
 

Additional Inherited Members

- Protected Attributes inherited from com.hyphenate.chat.EMBase< EMAMessageBody >
emaObject
 

Detailed Description

the voice message body class

EMVoiceMessageBody body = new EMVoiceMessageBody(voiceFile, length);

Constructor & Destructor Documentation

com.hyphenate.chat.EMVoiceMessageBody.EMVoiceMessageBody ( File  voiceFile,
int  duration 
)

create a voice message body

Parameters
voiceFilevoice file
durationvoice clip length, in seconds

Member Function Documentation

int com.hyphenate.chat.EMVoiceMessageBody.getLength ( )

get the length of the voice time, unit s

Returns

Member Data Documentation

final Parcelable.Creator<EMVoiceMessageBody> com.hyphenate.chat.EMVoiceMessageBody.CREATOR
static
Initial value:
= new Parcelable.Creator<EMVoiceMessageBody>() {
public EMVoiceMessageBody createFromParcel(Parcel in) {
return new EMVoiceMessageBody(in);
}
public EMVoiceMessageBody[] newArray(int size) {
return new EMVoiceMessageBody[size];
}
}

The documentation for this class was generated from the following file: