Class FileMessage
- 
                    
                    - All Implemented Interfaces:
 
 public class FileMessageFile Message Class The File Message class. This type of message will be stored and counted in the unread message count. 
- 
                
                    
                    - 
                                
                            
                                Constructor SummaryConstructors Constructor Description FileMessage(Array<byte> data)FileMessage(Parcel in)Constructor. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description static FileMessageobtain(Uri url)static FileMessageobtain(Context context, Uri url)Generates a FileMessage object. Array<byte>encode()Serializes the local message object into message data. voidwriteToParcel(Parcel dest, int flags)Writes the class's data into the provided Parcel. intdescribeContents()Describes the type of special objects included in the arrangement information of the Parcelable object. List<String>getSearchableWord()longgetSize()Gets the file size in bytes. voidsetSize(long size)Sets the file size in bytes. StringgetType()Get the file extension, default is bin voidsetType(String type)Sets the file extension suffix. UrigetFileUrl()Retrieves the remote download URL of the file voidsetFileUrl(Uri uri)Sets the remote download URL for the file - 
                    
                    
                    - 
                                
                            
                                Constructor Detail- 
                                        FileMessageFileMessage(Array<byte> data) 
 - 
                                        FileMessageFileMessage(Parcel in) Constructor.- Parameters:
- in- The Parcel passed during initialization.
 
 
- 
                                        
 - 
                                
                            
                                Method Detail- 
                                        obtain@Deprecated() static FileMessage obtain(Uri url) - Parameters:
- url- The file URL.
 
 - 
                                        obtainstatic FileMessage obtain(Context context, Uri url) Generates a FileMessage object. This method supports file and content protocol headers. - Parameters:
- context- The context.
- url- The file URL.
 
 - 
                                        encodeArray<byte> encode() Serializes the local message object into message data. - Returns:
- The message data. 
 
 - 
                                        writeToParcelvoid writeToParcel(Parcel dest, int flags) Writes the class's 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, which can be 0 or PARCELABLE_WRITE_RETURN_VALUE.
 
 - 
                                        describeContentsint describeContents() Describes the type of special objects included in the arrangement information of the Parcelable object. - Returns:
- A flag indicating the arrangement of the special object type collection of the Parcelable object. 
 
 - 
                                        getSearchableWordList<String> getSearchableWord() 
 - 
                                        getSizelong getSize() Gets the file size in bytes. - Returns:
- The file size in bytes. 
 
 - 
                                        setSizevoid setSize(long size) Sets the file size in bytes. - Parameters:
- size- The file size in bytes.
 
 - 
                                        getTypeString getType() Get the file extension, default is bin - Returns:
- The file extension, default is bin 
 
 - 
                                        setTypevoid setType(String type) Sets the file extension suffix. Default is bin. - Parameters:
- type- The file extension suffix.
 
 - 
                                        getFileUrlUri getFileUrl() Retrieves the remote download URL of the file - Returns:
- The remote download URL of the file 
 
 - 
                                        setFileUrlvoid setFileUrl(Uri uri) Sets the remote download URL for the file - Parameters:
- uri- The remote download URL for the file
 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-