TotalMode

enum class TotalMode : Enum<TotalMode>

How a paged query counts its total, the PagedList.total it returns.

Entries

Link copied to clipboard

Counts every match: PagedList.total is exact.

Link copied to clipboard

Counts up to the budget's count limit: PagedList.total is exact below it; otherwise it is the limit and PagedList.exact is false, read as "at least" (shown as 1000+). The default.

Link copied to clipboard

Does not count: PagedList.total is null. Endless scrolling uses CursorQuery instead.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard
fun valueOf(value: String): TotalMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.