If you hold down on the shazam button in the app it continuously listens even if you put your phone to sleep.
Try this next time you’re dancing or at the clurb and you’ll leave with a playlist featuring most of the songs you heard (other than the ultra obscure deep cuts)