- From: Marcos Cáceres <notifications@github.com>
- Date: Wed, 10 May 2023 20:09:34 -0700
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 11 May 2023 03:09:39 UTC
> Can you reference source material regarding how underlying OS APIs report the success or failure of these requests? I'm a novice in this space and I don't see anything quite so obvious. I'm not sure about the it works on Android... but quick search says one simply sets `requestedOrientation` on an Activity and then you can check if `onConfigurationChanged` was called. That doesn't exactly tell you if it failed though. 🤔 We might need to ask someone who knows Android well. On Apple's platform, one can monitor for changes also in a similar manner via [`UIDeviceOrientationDidChangeNotification`](https://developer.apple.com/documentation/uikit/uideviceorientationdidchangenotification). There is also [`requestGeometryUpdate(_:errorHandler:)`](https://developer.apple.com/documentation/uikit/uiwindowscene/3975944-requestgeometryupdate), which, as you can see, literally has the error handler as the callback. For the success case, one would rely on the change notification, should dispatch after a successful change. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/screen-orientation/issues/104#issuecomment-1543267517 You are receiving this because you are subscribed to this thread. Message ID: <w3c/screen-orientation/issues/104/1543267517@github.com>
Received on Thursday, 11 May 2023 03:09:39 UTC