Go to the home screen and lock the device from the notification area or a floating button.

You can also mute your device when quickly quitting.

You can use this app as a simple screen locker too, without going to home screen.