What is the event when the device orientation changes on Android?

I found that I need to change the camera aspect ratio to 9:16 in portrait mode and 16:9 in landscape. I see that my game gets rotated when the device rotates. But what is the even that I can trigger on to set the aspect ratio change at the same time? I’m ok with either a blueprint or C++ implementation for this.

For background, I just started a blank project for mobile devices, defined Android as a platform, set “Sensor” in the project orientation setting, created a camera actor and then packaged it for Multi. I’m testing this on my Samsung Galaxy Note 8 with Android 9.

Research says that Android exposes this as an “onConfigurationChanged” event → How to detect orientation change in layout in Android? - Stack Overflow.
Is this passed through by any chance?

FCoreDelegates::ApplicationReceivedScreenOrientationChangedNotificationDelegate can get event

Yes, it works. Do you know how should i close UI changes automatic when rotate mobile screen with orientation set to sensor?