Chat SDK for Android v1.2.1
agora java chat SDK
Public Member Functions | List of all members
io.agora.chat.MucSharedFile Class Reference

Inherits io.agora.chat.EMBase< T >.

Public Member Functions

String getFileId ()
 
String getFileName ()
 
String getFileOwner ()
 
long getFileUpdateTime ()
 
long getFileSize ()
 

Detailed Description

The shared file info class.

For example, you can use the following method to get information about the group shared file through GroupManager#fetchGroupSharedFileList(String, int, int):

List<MucSharedFile> sharedFiles = ChatClient.getInstance().groupManager().fetchGroupSharedFileList(groupId, pageNum, pageSize);

Member Function Documentation

◆ getFileId()

String io.agora.chat.MucSharedFile.getFileId ( )

Gets the shared file ID.

Returns
The shared file ID.

◆ getFileName()

String io.agora.chat.MucSharedFile.getFileName ( )

Gets the shared file name.

Returns
The shared file name.

◆ getFileOwner()

String io.agora.chat.MucSharedFile.getFileOwner ( )

Gets the username who uploads the shared file.

Returns
The username who uploads the shared file.

◆ getFileSize()

long io.agora.chat.MucSharedFile.getFileSize ( )

Gets the data length of the shared file, in bytes.

Returns
The data length of the shared file, in bytes.

◆ getFileUpdateTime()

long io.agora.chat.MucSharedFile.getFileUpdateTime ( )

Gets the update Unix timestamp of the shared file, in ms.

Returns
The update Unix timestamp of the shared file, in ms.

The documentation for this class was generated from the following file: