Carousel.Adapter

interface Carousel.Adapter


Adapter for a Carousel

Summary

Public functions

Int

Number of items you want to display in the Carousel

Unit
onNewItem(index: Int)

Callback when we reach a new index

Unit
populate(view: View, index: Int)

Callback to populate the view for the given index

Public functions

count

fun count(): Int

Number of items you want to display in the Carousel

Returns
Int

number of items

onNewItem

fun onNewItem(index: Int): Unit

Callback when we reach a new index

Parameters
index: Int

populate

fun populate(view: View, index: Int): Unit

Callback to populate the view for the given index

Parameters
view: View
index: Int