detect device orientation change to reload the scheduler

I want to reload the scheduler when the device’s orientation is changed. reload in the sense reload whole UI.

  1. How to detect the orientation change within the scheduler?
  2. How do I reload the entire scheduler. I want to keep my data and reload only the UI if possible.

Do you mean the mobile or desktop scheduler ?