public interface MediaEntity extends URLEntity
Modifier and Type | Interface and Description |
---|---|
static interface |
MediaEntity.Size |
static interface |
MediaEntity.Variant |
Modifier and Type | Method and Description |
---|---|
String |
getExtAltText() |
long |
getId()
Returns the id of the media.
|
String |
getMediaURL()
Returns the media URL.
|
String |
getMediaURLHttps()
Returns the media secure URL.
|
Map<Integer,MediaEntity.Size> |
getSizes()
Returns size variations of the media.
|
String |
getType()
Returns the media type ("photo", "video", "animated_gif").
|
int |
getVideoAspectRatioHeight() |
int |
getVideoAspectRatioWidth() |
long |
getVideoDurationMillis() |
MediaEntity.Variant[] |
getVideoVariants() |
getDisplayURL, getEnd, getExpandedURL, getStart, getText, getURL
long getId()
String getMediaURL()
String getMediaURLHttps()
Map<Integer,MediaEntity.Size> getSizes()
String getType()
int getVideoAspectRatioWidth()
int getVideoAspectRatioHeight()
long getVideoDurationMillis()
MediaEntity.Variant[] getVideoVariants()
String getExtAltText()
Copyright © 2018. All rights reserved.