Interface MediaItem


public interface MediaItem
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Fields for MediaItem.
    static enum 
    An enumeration of potential media types.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the mime type for this Media item.
    Get the thumbnail URL for the media item.
    Get the Type of this media item, either audio, image or video.
    Get a URL for the media item.
    void
    setMimeType(String mimeType)
    Set the mimetype for this Media Item.
    void
    Set a thumbnail URL for the media item.
    void
    Get the Type of this media item, either audio, image or video.
    void
    Set a URL for the media item.
  • Method Details

    • getMimeType

      String getMimeType()
      Get the mime type for this Media item.
      Returns:
      the mime type.
    • setMimeType

      void setMimeType(String mimeType)
      Set the mimetype for this Media Item.
      Parameters:
      mimeType - the mimeType
    • getType

      MediaItem.Type getType()
      Get the Type of this media item, either audio, image or video.
      Returns:
      the Type of this media item
    • setType

      void setType(MediaItem.Type type)
      Get the Type of this media item, either audio, image or video.
      Parameters:
      type - the type of this media item
    • getUrl

      String getUrl()
      Get a URL for the media item.
      Returns:
      the url of the media item
    • setUrl

      void setUrl(String url)
      Set a URL for the media item.
      Parameters:
      url - the media item URL
    • getThumbnailUrl

      String getThumbnailUrl()
      Get the thumbnail URL for the media item.
      Returns:
      the thumbnail url of the media item
    • setThumbnailUrl

      void setThumbnailUrl(String url)
      Set a thumbnail URL for the media item.
      Parameters:
      url - the thumbnail URL of the MediaItem