As per this ticket we are also looking for an ability to detect if the system is running in Screen Mirroring mode. That way we can disable our app functionality until the Screen Mirroring has been stopped by the user rather than having an API which controls the ability to use it etc.
I would rather we have a System Flag or an Event that we can control the behvaiour from our side.
FB ID: https://feedbackassistant.apple.com/feedback/15170839
Topic:
App & System Services
SubTopic:
General