Class

MutableIntervalList

Mutable version of IntervalList.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
class MutableIntervalList<T> : IntervalList<T>

Mutable version of IntervalList. It allows you to add new intervals via addInterval.

Note: this class is a part of LazyLayout harness that allows for building custom lazy layouts. LazyLayout and all corresponding APIs are still under development and are subject to change.

Functions

addInterval

fun addInterval(size: Int, value: T)

Adds a new interval into this list.

Parameters

size the amount of items in the new interval.
value the value representing this interval.