FileMessage

public class FileMessage

File Message Class

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

Constructors

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

Properties

Link copied to clipboard
public final static Creator<FileMessage> CREATOR
Reading interface, the purpose is to construct an instance of a class that implements Parcelable from Parcel.
Link copied to clipboard
public int progress

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()
Serializes the local message object into message data.
Link copied to clipboard
public Uri getFileUrl()
Retrieves the remote download URL of the file
Link copied to clipboard
public List<String> getSearchableWord()
Link copied to clipboard
public long getSize()
Gets the file size in bytes.
Link copied to clipboard
public String getType()
Get the file extension, default is bin
Link copied to clipboard
@Deprecated()
public static FileMessage obtain(Uri url)

public static FileMessage obtain(Context context, Uri url)
Generates a FileMessage object.
Link copied to clipboard
public void setFileUrl(Uri uri)
Sets the remote download URL for the file
Link copied to clipboard
public void setSize(long size)
Sets the file size in bytes.
Link copied to clipboard
public void setType(String type)
Sets the file extension suffix.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)
Writes the class's data into the provided Parcel.