Package io.rong.message
        Class HQVoiceMessage
- 
                    
                    - All Implemented Interfaces:
 
 public class HQVoiceMessageHigh-Definition Voice Message Class This class represents a high-definition voice message. The message will be stored and counted as an unread message. 
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public final static Creator<HQVoiceMessage>CREATOR
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description HQVoiceMessage(Array<byte> data)HQVoiceMessage(Parcel in)Constructor. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description static HQVoiceMessageobtain(Uri uri, int duration)Array<byte>encode()Serializes the local message object into message data. voidwriteToParcel(Parcel dest, int flags)Writes the class data into the provided Parcel. intdescribeContents()intgetDuration()Gets the duration of the voice message in seconds. voidsetDuration(int duration)Sets the duration of the voice message in seconds. UrigetFileUrl()Get the remote download URL for high-definition voice messages voidsetFileUrl(Uri uri)Sets the remote download URL for high-definition voice messages. - 
                    
                    
                    - 
                                
                            
                                Constructor Detail- 
                                        HQVoiceMessageHQVoiceMessage(Array<byte> data) 
 - 
                                        HQVoiceMessageHQVoiceMessage(Parcel in) Constructor.- Parameters:
- in- The Parcel passed during initialization.
 
 
- 
                                        
 - 
                                
                            
                                Method Detail- 
                                        obtainstatic HQVoiceMessage obtain(Uri uri, int duration) 
 - 
                                        encodeArray<byte> encode() Serializes the local message object into message data. - Returns:
- The message data. 
 
 - 
                                        writeToParcelvoid writeToParcel(Parcel dest, int flags) Writes the class data into the provided Parcel. - Parameters:
- dest- The Parcel into which the object is written.
- flags- Additional flags about how the object should be written, may be 0 or PARCELABLE_WRITE_RETURN_VALUE.
 
 - 
                                        describeContentsint describeContents() 
 - 
                                        getDurationint getDuration() Gets the duration of the voice message in seconds. - Returns:
- The duration of the voice message in seconds. 
 
 - 
                                        setDurationvoid setDuration(int duration) Sets the duration of the voice message in seconds. - Parameters:
- duration- The duration of the voice message in seconds.
 
 - 
                                        getFileUrlUri getFileUrl() Get the remote download URL for high-definition voice messages - Returns:
- The remote download URL for high-definition voice messages 
 
 - 
                                        setFileUrlvoid setFileUrl(Uri uri) Sets the remote download URL for high-definition voice messages. - Parameters:
- uri- The remote download URL for high-definition voice messages.
 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-