https://kotlinlang.org logo
#compose
Title
# compose
m

Mehmet Peker

09/11/2021, 12:21 AM
How can I detect that the application is in the background?Disposable Effect not working for me
i

Ian Lake

09/11/2021, 1:54 PM
m

Mehmet Peker

09/11/2021, 2:21 PM
I hava a simple counter app.I want to update database when user closed app from recent background app but i cant detect that.Is this solve my problems?
i

Ian Lake

09/11/2021, 3:40 PM
You'll have to be specific about what interaction you're trying to track. If you mean you want a callback when the user makes your app no longer visible (either by hitting the home button, system back button, receiving a phone call, anything that causes your app to no longer be visible to the user), then yes, this would be what you'd use