{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LazyLayoutIntervalContent.Interval

@ExperimentalFoundationApi
public interface LazyLayoutIntervalContent.Interval


Common content of individual intervals in item DSL of lazy layouts.

Summary

Public methods

default Function1<@NonNull Integer, @NonNull Object>

Returns item key based on a local index for the current interval.

default @NonNull Function1<@NonNull IntegerObject>

Returns item type based on a local index for the current interval.

Public methods

getKey

default Function1<@NonNull Integer, @NonNull ObjectgetKey()

Returns item key based on a local index for the current interval.

getType

default @NonNull Function1<@NonNull IntegerObjectgetType()

Returns item type based on a local index for the current interval.