package Ġcy . ac . uc y . cs . any place . lib . android . extensions Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . activity . Component Activity Ċ import Ġandroidx . activity . result . Activity Result Ċ import Ġandroidx . activity . result . Activity Result Callback Ċ import Ġandroidx . activity . result . Activity Result Launcher Ċ import Ġandroidx . activity . result . contract . Activity Result Contracts Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . fragment . app . Dialog Fragment Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġcy . ac . uc y . cs . any place . lib . android . Any place App Ċ import Ġcy . ac . uc y . cs . any place . lib . android . cv . misc . ViewModel Factory Ċ import Ġcy . ac . uc y . cs . any place . lib . android . data . datastore . DataStore Misc Ċ import Ġcy . ac . uc y . cs . any place . lib . android . data . datastore . DataStore Server Ċ import Ġcy . ac . uc y . cs . any place . lib . android . data . datastore . DataStore User Ċ Ċ fun ĠAppCompatActivity . get ViewModel Factory (): ĠViewModel Factory Ġ{ ĊĠĠĠ Ġreturn ĠViewModel Factory ( this ) Ċ } Ċ Ċ fun ĠComponent Activity . register For Activity Result ( ĊĠĠĠ Ġcallback : ĠActivity Result Callback < Activity Result > Ċ ): ĠActivity Result Launcher < Intent > Ġ{ ĊĠĠĠ Ġreturn Ġthis . register For Activity Result ( ĊĠĠĠĠĠĠĠ ĠActivity Result Contracts . Start Activity For Result (), ĊĠĠĠĠĠĠĠ Ġcallback ĊĠĠĠ Ġ) Ċ } Ċ Ċ // ĠEXT ENSION ĠFUNCTIONS Ċ val ĠActivity . app : ĠAny place App Ġget () Ġ= Ġthis . application Ġas ĠAny place App Ċ val ĠActivity . data Store Server : ĠData Store Server Ġget () Ġ= Ġthis . app . data Store Server Ċ val ĠActivity . data Store Misc : ĠData Store Misc Ġget () Ġ= Ġthis . app . data Store Misc Ċ val ĠActivity . data Store User : ĠData Store User Ġget () Ġ= Ġthis . app . data Store User Ċ Ċ val ĠDialog Fragment . app : ĠAny place App Ġget () Ġ= Ġthis . activity ?. application Ġas ĠAny place App Ċ val ĠAndroid ViewModel . app : ĠAny place App Ġget () Ġ= Ġget Application < Any place App >() Ċ Ċ // ĠExt ending ĠAny Ġ( Java ĠObject ): Ġname Ġconvention Ġfor Ġlog gin : Ġap _< className > Ċ val ĠAny . TAG Ġ: ĠString ĊĠĠĠ Ġget () Ġ= Ġ" ap _${ this :: class . java . simple Name }" Ċ