Code for "when screen idle.."

I want to make a code that sounds like "If Screen idled for 10 seconds" Then do something. Can anybody know how to do that? Thanks

Use clock component and set time according your requirement.

1 Like

Search for IdleMode and ActivityLifecycle.