I don’t think there is a way to do this. When the screen saver is running, your application may still be a priority application, but it will be inactive. This is similar to what happens on iOS when the user locks the screen while using the application. Like the iOS lock screen, the user can actively use the system when it is in this state. For example, you can use Siri without dropping the screen saver.
source
share