Class StaticExperienceUtilsKt
-
- All Implemented Interfaces:
public final class StaticExperienceUtilsKt
-
-
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. -
-
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.
-
-
-
-