Vladimir
12/20/2024, 9:07 AMContext
that is readily available inside Activity
and composable
it says that it should not be passed around or injected. That being said, there are quite a lot of components in Android, such as Bluetooth Adapter, that depend on Context for their instantiation and functionality yet would best be handled outside Activity or a composable and instead be encapsulated in some dedicated Kotlin business domain class.
What is the right way to achieve this?Chrimaeon
12/20/2024, 9:09 AMVladimir
12/20/2024, 9:10 AMContext
Chrimaeon
12/20/2024, 9:13 AMChrimaeon
12/20/2024, 9:13 AMVladimir
12/20/2024, 9:13 AMkotlinlang
android
section. Had I used Java I would not have posted the question hereZakir Sheikh
12/20/2024, 1:32 PMContext.getApplicationContext
ephemient
12/20/2024, 5:36 PMVladimir
12/20/2024, 6:14 PMephemient
12/20/2024, 6:16 PMVladimir
12/20/2024, 6:16 PMephemient
12/20/2024, 6:17 PMVladimir
12/20/2024, 6:19 PMChrimaeon
12/20/2024, 6:29 PMVladimir
12/20/2024, 6:30 PMChrimaeon
12/20/2024, 6:31 PMVladimir
12/20/2024, 6:33 PMVladimir
12/20/2024, 6:34 PM