Class StaticExperienceUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static List<Image> sanitizeImages(List<Image> images) Filters and validates images to ensure they have valid HTTP/HTTPS URLs.
      final static List<Image> sortImages(List<Image> images) Sorts images based on their suitability for the current device and network conditions.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • sanitizeImages

         final static List<Image> sanitizeImages(List<Image> images)

        Filters and validates images to ensure they have valid HTTP/HTTPS URLs.

        Parameters:
        images - The list of Image objects to sanitize.
        Returns:

        A filtered list containing only images with valid HTTP/HTTPS URLs.

      • sortImages

         final static List<Image> sortImages(List<Image> images)

        Sorts images based on their suitability for the current device and network conditions. If there's only one image, returns it as is. Otherwise, sorts based on network speed and resolution requirements.

        Parameters:
        images - The list of Image objects to sort.
        Returns:

        A sorted list of images, with the most suitable images first.