How to check when UWP application becomes constrained

We are in the process of porting a game to Windows 10 UWP. Just like our Xbox One version of the game, we need to check when the application becomes constrained (Achievement Notification Interaction or Account Picker Overlay for example). To check when the application becomes suspended we use OnApplicationPause and this works fine, but how do we check when the application becomes constrained?

Thanks for the help.

You should be able to use “OnApplicationFocus” callback for that.

Ah, I completely forgot about that. I’ll try it out. Thanks!