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.
Search for IdleMode and ActivityLifecycle.