Skip to content

1.3.0

Compare
Choose a tag to compare
@ImaginativeShohag ImaginativeShohag released this 24 Mar 21:29
· 86 commits to master since this release
72991d0

Header field is added to the CarouselItem.

Examples:

// Kotlin
val headers = mutableMapOf<String, String>()
headers["header_key"] = "header_value"

val carouselItem1 = CarouselItem(
    imageUrl = "https://images.unsplash.com/photo-1549577434-d7615fd4ceac?w=1080",
    caption = "Photo by Jeremy Bishop on Unsplash",
    headers = headers
)
val carouselItem2 = CarouselItem(
    imageUrl = "https://images.unsplash.com/photo-1549577434-d7615fd4ceac?w=1080",
    headers = headers
)
// Java
Map<String, String> headers = new HashMap<>();
headers.put("header_key", "header_value");

CarouselItem carouselItem1 = new CarouselItem(
        "https://images.unsplash.com/photo-1549577434-d7615fd4ceac?w=1080",
        "Photo by Jeremy Bishop on Unsplash",
        headers
);

CarouselItem carouselItem2 = new CarouselItem(
        "https://images.unsplash.com/photo-1549577434-d7615fd4ceac?w=1080",
        headers
);