HQVoiceMessage

public class HQVoiceMessage

High-Definition Voice Message Class

This class represents a high-definition voice message. The message will be stored and counted as an unread message.

Constructors

Link copied to clipboard
public void HQVoiceMessage(Array<byte> data)
public void HQVoiceMessage(Parcel in)
Constructor.

Properties

Link copied to clipboard
public final static Creator<HQVoiceMessage> CREATOR
Reads the interface to construct an instance of a class that implements Parcelable from a Parcel.

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public Array<byte> encode()
Serializes the local message object into message data.
Link copied to clipboard
public int getDuration()
Gets the duration of the voice message in seconds.
Link copied to clipboard
public Uri getFileUrl()
Get the remote download URL for high-definition voice messages
Link copied to clipboard
public static HQVoiceMessage obtain(Uri uri, int duration)
Link copied to clipboard
public void setDuration(int duration)
Sets the duration of the voice message in seconds.
Link copied to clipboard
public void setFileUrl(Uri uri)
Sets the remote download URL for high-definition voice messages.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)
Writes the class data into the provided Parcel.