VoiceMessage

public class VoiceMessage

Voice Message Class

The Voice Message class. This type of message will be stored and counted in the unread message count.

Constructors

Link copied to clipboard
public void VoiceMessage(Array<byte> data)
public void VoiceMessage(Parcel in)

Properties

Link copied to clipboard
public final static Creator<VoiceMessage> CREATOR
Read interface, designed to construct an instance of a class that implements Parcelable from a Parcel.

Functions

Link copied to clipboard
public int describeContents()
Describes the type of special objects included in the arrangement information of the Parcelable object.
Link copied to clipboard
public Array<byte> encode()
Link copied to clipboard
public String getBase64()
Link copied to clipboard
public int getDuration()
Gets the duration of the voice message in seconds.
Link copied to clipboard
public Uri getUri()
Retrieves the Uri of the audio file.
Link copied to clipboard
public static VoiceMessage obtain(Uri uri, int duration)
Link copied to clipboard
public void setBase64(String base64)
Link copied to clipboard
public void setDuration(int duration)
Sets the duration of the voice message in seconds.
Link copied to clipboard
public void setUri(Uri uri)
Sets the URI of the audio file.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)
Writes the class data into the provided Parcel.