Package 

Class StringExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static String applyStreamCdnImageResizingIfEnabled(String $self, StreamCdnImageResizing streamCdnImageResizing) A convenience method which applies Stream CDN image resizing if it's enabled and applicable.
      final static String applyStreamCdnImageResizing(String $self, StreamCdnImageResizing streamCdnImageResizing, StreamCdnImageResizer streamCdnImageResizer) Applies image resizing following the resolver precedence: if the legacy streamCdnImageResizing is explicitly enabled its exact percentage behavior is honored, otherwise the active streamCdnImageResizer is applied (defaulting to a 2MP cap).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • applyStreamCdnImageResizingIfEnabled

         final static String applyStreamCdnImageResizingIfEnabled(String $self, StreamCdnImageResizing streamCdnImageResizing)

        A convenience method which applies Stream CDN image resizing if it's enabled and applicable. It doesn't hold any special value other than minimizing repetition.

        Parameters:
        streamCdnImageResizing - Holds value information about the resizing mode including if it is enabled or not.
      • applyStreamCdnImageResizing

         final static String applyStreamCdnImageResizing(String $self, StreamCdnImageResizing streamCdnImageResizing, StreamCdnImageResizer streamCdnImageResizer)

        Applies image resizing following the resolver precedence: if the legacy streamCdnImageResizing is explicitly enabled its exact percentage behavior is honored, otherwise the active streamCdnImageResizer is applied (defaulting to a 2MP cap). Disabling resizing is done by setting the resizer to NoOpStreamCdnImageResizer.

        Parameters:
        streamCdnImageResizing - The legacy resizing config.
        streamCdnImageResizer - The active resizer, applied when the legacy config is not enabled.