Class Media

    • Constructor Detail

      • Media

        public Media​(Media.Location... locations)
        Creates a media object with a location.
        Parameters:
        locations - The location.
      • Media

        public Media​(int width,
                     int height,
                     Media.Location... locations)
        Creates a media object with a location.
        Parameters:
        width - The width.
        height - The height.
        locations - The location.
    • Method Detail

      • getLocations

        public final List<Media.Location> getLocations()
        Gets the locations to the media.
        Returns:
        The locations.
      • getHeight

        public final int getHeight()
        If the media is an image or video, gets the recommended display height of the image.
        Returns:
        The height.
      • getWidth

        public final int getWidth()
        If the media is an image or video, gets the recommended display width of the image.
        Returns:
        The width.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object