Chris Fillmore
05/10/2022, 5:37 PMIntent
for the notification’s setContentIntent()
? I’m trying to avoid having the composable know about its host Activity. Clicking the notification will launch that Activity. I can think of a few things I could do:
• Pass in a lambda like intent: () -> Intent
to invoke anytime I need an intent
• Pass in the Activity Class<?>
• CompositionLocal? (bad idea?)Ian Lake
05/10/2022, 5:58 PMChris Fillmore
05/10/2022, 6:00 PM