package Ġcom . os man sek man . food app . utils Ċ Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġandroidx . view pager 2 . adapter . Fragment State Adapter Ċ import Ġcom . os man sek man . food app . ui . On boarding . First On Board ing Fragment Ċ import Ġcom . os man sek man . food app . ui . On boarding . Second On Board ing Fragment Ċ import Ġcom . os man sek man . food app . ui . On boarding . Third On Board ing Fragment Ċ Ċ private Ġconst Ġval ĠFR AG MENT _ COUNT Ġ= Ġ 3 Ċ Ċ class ĠView Pager Adapter ( require Activity : ĠFragment Activity ) Ġ: ĠFragment State Adapter ( require Activity ) Ġ{ ĊĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= ĠFR AG MENT _ COUNT ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Fragment ( position : ĠInt ): ĠFragment Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( position ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 Ġ-> ĠFirst On Board ing Fragment () ĊĠĠĠĠĠĠĠĠĠĠĠĠ 1 Ġ-> ĠSecond On Board ing Fragment () ĊĠĠĠĠĠĠĠĠĠĠĠĠ 2 Ġ-> ĠThird On Board ing Fragment () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> ĠFirst On Board ing Fragment () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }