Media

interface Media

A Media represents media information of a Message in a Conversation.

Functions

getTemporaryContentUrl
Link copied to clipboard
abstract fun getTemporaryContentUrl(listener: CallbackListener<String>): CancellationToken

Returns direct content URL for the media.

Properties

category
Link copied to clipboard
abstract val category: MediaCategory

Media category, can be one of the MediaCategory values.

contentType
Link copied to clipboard
abstract val contentType: String

Content type of media.

filename
Link copied to clipboard
abstract val filename: String?

File name if present, empty string otherwise.

sid
Link copied to clipboard
abstract val sid: String

The server-assigned unique identifier for Media.

size
Link copied to clipboard
abstract val size: Long

Size of media, bytes.