Interface MediaLink

All Superinterfaces:
JsonAdaptable
All Known Subinterfaces:
MutableMediaLink

@ProviderType public interface MediaLink extends JsonAdaptable
MediaLink...
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    A hint to the consumer about the length, in seconds, of the media resource identified by the url property.
    int
    A hint to the consumer about the height, in pixels, of the media resource identified by the url property.
    Returns a copy of this activity that is mutable.
    Returns a read-only value map of the raw properties underlying this media link.
    The IRI of the media resource being linked.
    int
    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 Details

    • getURL

      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 mutable this is returned.
      Returns:
      a mutable copy of this activity.