package Ġcom . cn am . mag as inen l igne . adapters Ċ Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . FragmentManager Ċ import Ġandroidx . fragment . app . Fragment Pager Adapter Ċ import Ġcom . cn am . mag as inen l igne . fragments . registration . Admin Registration Fragment Ċ import Ġcom . cn am . mag as inen l igne . fragments . registration . Client Registration Fragment Ċ import Ġcom . cn am . mag as inen l igne . fragments . registration . Merchant Registration Fragment Ċ Ċ class ĠRegistration Pager Adapter ( fragment Manager : ĠFragment Manager ) Ġ: ĊĠĠĠ ĠFragment Pager Adapter ( fragment Manager , ĠBE HAV IOR _ RE SU ME _ ONLY _ CURRENT _ FRAGMENT ) Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠgetItem ( position : ĠInt ): ĠFragment Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( position ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 Ġ-> ĠClient Registration Fragment () ĊĠĠĠĠĠĠĠĠĠĠĠĠ 1 Ġ-> ĠMer chant Registration Fragment () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> ĠAdmin Registration Fragment () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Count (): ĠInt Ġ= Ġ 3 Ċ Ċ }