Interface MediaLink
-
- All Superinterfaces:
JsonAdaptable
- All Known Subinterfaces:
MutableMediaLink
@ProviderType public interface MediaLink extends JsonAdaptable
MediaLink
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDuration()
A hint to the consumer about the length, in seconds, of the media resource identified by the url property.int
getHeight()
A hint to the consumer about the height, in pixels, of the media resource identified by the url property.MutableMediaLink
getMutableMediaLink()
Returns a copy of this activity that is mutable.ValueMap
getProperties()
Returns a read-only value map of the raw properties underlying this media link.java.lang.String
getURL()
The IRI of the media resource being linked.int
getWidth()
A hint to the consumer about the width, in pixels, of the media resource identified by the url property.-
Methods inherited from interface com.adobe.granite.activitystreams.JsonAdaptable
toJSON
-
-
-
-
Method Detail
-
getURL
java.lang.String getURL()
The IRI of the media resource being linked. A media link MUST have a url property.
-
getWidth
int getWidth()
A hint to the consumer about the width, in pixels, of the media resource identified by the url property. A media link MAY contain a width property when the target resource is a visual media item such as an image, video or embeddable HTML page.
-
getHeight
int getHeight()
A hint to the consumer about the height, in pixels, of the media resource identified by the url property. A media link MAY contain a height property when the target resource is a visual media item such as an image, video or embeddable HTML page.
-
getDuration
int getDuration()
A hint to the consumer about the length, in seconds, of the media resource identified by the url property. A media link MAY contain a "duration" property when the target resource is a time-based media item such as an audio or video.
-
getProperties
ValueMap getProperties()
Returns a read-only value map of the raw properties underlying this media link.
-
getMutableMediaLink
MutableMediaLink getMutableMediaLink()
Returns a copy of this activity that is mutable. If this instance is already mutablethis
is returned.- Returns:
- a mutable copy of this activity.
-
-