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

Added in 2.2.0
fun count(): Int

Number of items you want to display in the Carousel

Returns
Int

number of items

onNewItem

Added in 2.2.0
fun onNewItem(index: Int): Unit

Callback when we reach a new index

Parameters
index: Int

populate

Added in 2.2.0
fun populate(view: View!, index: Int): Unit

Callback to populate the view for the given index

Parameters
view: View!
index: Int