/* Ċ Ġ* ĠCopyright Ġ 2 0 2 0 ĠThe ĠAndroid ĠOpen ĠSource ĠProject Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġandroidx . paging Ċ Ċ import Ġandroidx . paging . Load State . Not Loading Ċ Ċ /** Ċ Ġ* ĠTest - only Ġlocal - only ĠLoad States Ġbuilder Ġwhich Ġdefaults Ġeach Ġstate Ġto Ġ[ Not Loading ], Ġwith Ċ Ġ* Ġ[ Load State . end Of Pagination Reached ] Ġ= Ġ` false ` Ċ Ġ*/ Ċ fun Ġlocal Load States Of ( ĊĠĠĠ Ġrefresh Local : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġprepend Local : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġappend Local : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ) Ċ ) Ġ= ĠCom bined Load States ( ĊĠĠĠ Ġrefresh Ġ= Ġrefresh Local , ĊĠĠĠ Ġprepend Ġ= Ġprepend Local , ĊĠĠĠ Ġappend Ġ= Ġappend Local , ĊĠĠĠ Ġsource Ġ= ĠLoad States ( ĊĠĠĠĠĠĠĠ Ġrefresh Ġ= Ġrefresh Local , ĊĠĠĠĠĠĠĠ Ġprepend Ġ= Ġprepend Local , ĊĠĠĠĠĠĠĠ Ġappend Ġ= Ġappend Local , ĊĠĠĠ Ġ), Ċ ) Ċ Ċ /** Ċ Ġ* ĠTest - only Ġremote ĠLoad States Ġbuilder Ġwhich Ġdefaults Ġeach Ġstate Ġto Ġ[ Not Loading ], Ġwith Ċ Ġ* Ġ[ Load State . end Of Pagination Reached ] Ġ= Ġ` false ` Ċ Ġ*/ Ċ fun Ġremote Load States Of ( ĊĠĠĠ Ġrefresh : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġprepend : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġappend : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġrefresh Local : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġprepend Local : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġappend Local : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġrefresh Remote : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġprepend Remote : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġappend Remote : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ) Ċ ) Ġ= ĠCom bined Load States ( ĊĠĠĠ Ġrefresh Ġ= Ġrefresh , ĊĠĠĠ Ġprepend Ġ= Ġprepend , ĊĠĠĠ Ġappend Ġ= Ġappend , ĊĠĠĠ Ġsource Ġ= ĠLoad States ( ĊĠĠĠĠĠĠĠ Ġrefresh Ġ= Ġrefresh Local , ĊĠĠĠĠĠĠĠ Ġprepend Ġ= Ġprepend Local , ĊĠĠĠĠĠĠĠ Ġappend Ġ= Ġappend Local , ĊĠĠĠ Ġ), ĊĠĠĠ Ġmedi ator Ġ= ĠLoad States ( ĊĠĠĠĠĠĠĠ Ġrefresh Ġ= Ġrefresh Remote , ĊĠĠĠĠĠĠĠ Ġprepend Ġ= Ġprepend Remote , ĊĠĠĠĠĠĠĠ Ġappend Ġ= Ġappend Remote , ĊĠĠĠ Ġ), Ċ ) Ċ Ċ /** Ċ Ġ* ĠTest - only ĠLoad States Ġbuilder Ġwhich Ġdefaults Ġeach Ġstate Ġto Ġ[ Not Loading ], Ġwith Ċ Ġ* Ġ[ Load State . end Of Pagination Reached ] Ġ= Ġ` false ` Ċ Ġ*/ Ċ fun Ġload States ( ĊĠĠĠ Ġrefresh : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġprepend : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), ĊĠĠĠ Ġappend : ĠLoad State Ġ= ĠNot Loading ( end Of Pagination Reached Ġ= Ġfalse ), Ċ ) Ġ= ĠLoad States ( ĊĠĠĠ Ġrefresh Ġ= Ġrefresh , ĊĠĠĠ Ġprepend Ġ= Ġprepend , ĊĠĠĠ Ġappend Ġ= Ġappend , Ċ )