Package twitter4j.v1

Interface MediaEntity

All Superinterfaces:
Serializable, TweetEntity, URLEntity

public interface MediaEntity extends URLEntity
Since:
Twitter4J 2.2.3
  • Method Details

    • getId

      long getId()
      Returns the id of the media.
      Returns:
      the id of the media
    • getMediaURL

      String getMediaURL()
      Returns the media URL.
      Returns:
      the media URL
    • getMediaURLHttps

      String getMediaURLHttps()
      Returns the media secure URL.
      Returns:
      the media secure URL
    • getSizes

      Returns size variations of the media.
      Returns:
      size variations of the media
    • getType

      String getType()
      Returns the media type ("photo", "video", "animated_gif").
      Returns:
      the media type ("photo", "video", "animated_gif").
    • getVideoAspectRatioWidth

      int getVideoAspectRatioWidth()
      Returns:
      video aspect ratio width
    • getVideoAspectRatioHeight

      int getVideoAspectRatioHeight()
      Returns:
      video aspect ratio height
    • getVideoDurationMillis

      long getVideoDurationMillis()
      Returns:
      video duration in milliseconds
    • getVideoVariants

      MediaEntity.Variant[] getVideoVariants()
      Returns:
      array of video variants
    • getExtAltText

      String getExtAltText()
      Returns:
      alt text