MediaItem

public protocol MediaItem

A protocol used to represent the data for a message containing an URL (image or video).

  • The url where the media is located.

    Declaration

    Swift

    var sourceUrl: URL? { get }
  • A placeholder image for when the image is obtained asynchronously.

    Declaration

    Swift

    var placeholder: Image { get }
  • The size of the media item.

    Declaration

    Swift

    var size: CGSize { get }