Android 12 Developer Preview is here! Try it out, and give us your feedback!

TerminalSeparatorType

enum class TerminalSeparatorType
kotlin.Any
   ↳ kotlin.Enum<androidx.paging.TerminalSeparatorType>
   ↳ androidx.paging.TerminalSeparatorType

Mode for configuring when terminal separators (header and footer) would be displayed by the insertSeparators, insertHeaderItem or insertFooterItem operators on PagingData.

Summary

Enum values

Show terminal separators (header and footer) when both PagingSource and RemoteMediator reaches the end of pagination.

Show terminal separators (header and footer) as soon as PagingSource reaches the end of pagination, regardless of RemoteMediator's state.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

FULLY_COMPLETE

enum val FULLY_COMPLETE : TerminalSeparatorType

Show terminal separators (header and footer) when both PagingSource and RemoteMediator reaches the end of pagination.

End of paginations occurs when CombinedLoadStates has set LoadState.endOfPaginationReached to true for both CombinedLoadStates.source and CombinedLoadStates.mediator in the PREPEND direction for the header and in the APPEND direction for the footer.

In cases where RemoteMediator isn't used, only CombinedLoadStates.source will be considered.

SOURCE_COMPLETE

enum val SOURCE_COMPLETE : TerminalSeparatorType

Show terminal separators (header and footer) as soon as PagingSource reaches the end of pagination, regardless of RemoteMediator's state.

End of paginations occurs when CombinedLoadStates has set LoadState.endOfPaginationReached to true for CombinedLoadStates.source in the PREPEND direction for the header and in the APPEND direction for the footer.