MediaInfo

class MediaInfo

Represents a media information to be used in drawing the images or thumbnail of videos. This can be created by either UikitFileMessage.originalMediaInfo or UikitFileMessage.thumbnailMediaInfo.

Since

1.0.0-beta.1

Properties

Link copied to clipboard
val cachedFile: File? = null
Link copied to clipboard

The cache key of the media.

Link copied to clipboard
val createdAt: Long = 0

The sent time of the media.

Link copied to clipboard

The file name of the media.

Link copied to clipboard

The sender id of the media.

Link copied to clipboard

The sender nickname of the media.

Link copied to clipboard

The type of the media.

Link copied to clipboard
val url: String

The url of the media.

Functions

Link copied to clipboard
fun copy(type: String = this.type, url: String = this.url, cacheKey: String = this.cacheKey, senderId: String = this.senderId, senderNickname: String = this.senderNickname, createdAt: Long = this.createdAt, fileName: String = this.fileName, cachedFile: File? = this.cachedFile): MediaInfo
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard