How to get the status of the App switcher during screen sharing with ReplayKit

I would like to execute a certain process only when an iPhone screen sharer is using the App switcher during screen sharing.

Is there a way to get the status of the App switcher during screen sharing with ReplayKit? And if so, what iOS API or method should I use?

How to get the status of the App switcher during screen sharing with ReplayKit
 
 
Q