When I pull down the quick settings drop down menu while my app is opened and in the foreground, are there any callback methods called?
I tried a few quicks tests and Activity.onWindowFocusChanged(boolean hasFocus) might work for you. It fires when I drag down quick settings but it will also likely fire for other reasons, like AlertDialogs.
onWindowFocusChanged void onWindowFocusChanged (boolean hasFocus) Called when the current Window of the activity gains or loses focus. This is the best indicator of whether this activity is visible to the user.
onWindowFocusChanged
void onWindowFocusChanged (boolean hasFocus)
Called when the current Window of the activity gains or loses focus. This is the best indicator of whether this activity is visible to the user.
1.4m articles
1.4m replys
5 comments
57.0k users