package Ġcom . t ange m . t ange m _ sdk _ new . extensions Ċ Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġcom . t ange m . Config Ċ import Ġcom . t ange m . Session View Delegate Ċ import Ġcom . t ange m . T ange m Sdk Ċ import Ġcom . t ange m . t ange m _ sdk _ new . Default Session View Delegate Ċ import Ġcom . t ange m . t ange m _ sdk _ new . N fc Lifecycle Observer Ċ import Ġcom . t ange m . t ange m _ sdk _ new . Terminal Keys Storage Ċ import Ġcom . t ange m . t ange m _ sdk _ new . n fc . N fc Manager Ċ Ċ fun ĠT ange m Sdk . Companion . init ( activity : ĠFragment Activity , Ġconfig : ĠConfig Ġ= ĠConfig ()): ĠT ange m Sdk Ġ{ ĊĠĠĠ Ġval Ġn fc Manager Ġ= ĠT ange m Sdk . init N fc Manager ( activity ) ĊĊĠĠĠ Ġval Ġview Delegate Ġ= ĠDefault Session View Delegate ( n fc Manager . reader ) ĊĠĠĠ Ġview Delegate . activity Ġ= Ġactivity ĊĊĠĠĠ Ġval Ġt ange m Sdk Ġ= ĠT ange m Sdk ( n fc Manager . reader , Ġview Delegate , Ġconfig ) ĊĠĠĠ Ġt ange m Sdk . set Terminal Keys Service ( Terminal Keys Storage ( activity . application )) ĊĊĠĠĠ Ġreturn Ġt ange m Sdk Ċ } Ċ Ċ fun ĠT ange m Sdk . Companion . custom Init ( ĊĠĠĠĠĠĠĠ Ġactivity : ĠFragment Activity , ĊĠĠĠĠĠĠĠ Ġview Delegate : ĠSession View Delegate ? Ġ= Ġnull , ĊĠĠĠĠĠĠĠ Ġconfig : ĠConfig Ġ= ĠConfig () Ċ ): ĠT ange m Sdk Ġ{ ĊĠĠĠ Ġval Ġn fc Manager Ġ= ĠT ange m Sdk . init N fc Manager ( activity ) ĊĊĠĠĠ Ġval Ġt ange m Sdk Ġ= ĠT ange m Sdk ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġn fc Manager . reader , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġview Delegate Ġ?: ĠDefault Session View Delegate ( n fc Manager . reader ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. apply Ġ{ Ġthis . activity Ġ= Ġactivity Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġconfig ĊĠĠĠ Ġ) ĊĠĠĠ Ġt ange m Sdk . set Terminal Keys Service ( Terminal Keys Storage ( activity . application )) ĊĊĠĠĠ Ġreturn Ġt ange m Sdk Ċ } Ċ Ċ fun ĠT ange m Sdk . Companion . init N fc Manager ( activity : ĠFragment Activity ): ĠN fc Manager Ġ{ ĊĠĠĠ Ġval Ġn fc Manager Ġ= ĠN fc Manager () ĊĠĠĠ Ġn fc Manager . setCurrent Activity ( activity ) ĊĠĠĠ Ġactivity . lifecycle . add Observer ( N fc Lifecycle Observer ( n fc Manager )) ĊĠĠĠ Ġreturn Ġn fc Manager Ċ } Ċ