Class ResponsiveMediaFormatsBuilder


  • @ProviderType
    @Deprecated
    public final class ResponsiveMediaFormatsBuilder
    extends java.lang.Object
    Deprecated.
    Use responsive image handling methods for image sizes and picture sources from MediaBuilder together with SimpleImageMediaMarkupBuilder.
    Special builder that supports generating a on-the-fly list of media formats derived from a main media format with same ratio but different sizes for different breakpoints.

    The main media format should not have a fixed dimension defined, but only a ratio and probably min. width and height. The resulting media formats are only generated on-the-fly for the media resolution process. On each format a MediaNameConstants.PROP_BREAKPOINT breakpoint is set that is used by the ResponsiveImageMediaMarkupBuilder.

    • Constructor Detail

      • ResponsiveMediaFormatsBuilder

        public ResponsiveMediaFormatsBuilder​(@NotNull
                                             @NotNull MediaFormat mainMediaFormat)
        Deprecated.
        Parameters:
        mainMediaFormat - Main media format from which the reponsive "on-the-fly" formats are derived from.