deviant
09/05/2022, 12:13 PMwithAndroidContext()
method in your coroutine body`
what does it mean and how can i make my sound layer as generic as possible?rtsketo
09/18/2022, 2:31 PMapplicationContext
is created when the app starts and then in general it just being passed down to other classes.
I'd guess that withAndroidContext()
initializes a local variable with applicationContext
, which will allow your code to access the resource you are looking for. From what I found online, it seems to be a bug with newer versions of korio.
In any case, you can use Platform.os.isAndroid
to differentiate the code being execuded in Android from the rest of platforms.