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 intgetDuration()A hint to the consumer about the length, in seconds, of the media resource identified by the url property.intgetHeight()A hint to the consumer about the height, in pixels, of the media resource identified by the url property.MutableMediaLinkgetMutableMediaLink()Returns a copy of this activity that is mutable.ValueMapgetProperties()Returns a read-only value map of the raw properties underlying this media link.java.lang.StringgetURL()The IRI of the media resource being linked.intgetWidth()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 mutablethisis returned.- Returns:
- a mutable copy of this activity.
-
-