最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Documentation for UIScene notifications related to PiP video in iOS 18? - Stack Overflow

programmeradmin0浏览0评论

TL/DR

I haven't found any documentation related to the below subject regarding UIScene notifications for PiP video that seem to have appeared since iOS 18. Is there any, or has it been mentioned, like at WWDC or elsewhere?

Details

There seems to have been a change in how scene notifications are sent between iOS 17 and iOS 18 (give or take a few minor releases, since I haven't figured exactly when this change appeared).

From iOS 18 and onwards, it seems that these notifications are not only sent for an iOS app itself when moving to foreground/background, but we also receive the notifications for PiP video "scenes" going into foreground/background.

  • UIScene.willEnterForegroundNotification
  • UIScene.didEnterBackgroundNotification

So (from iOS 18) when your app is playing video and you move the app to background, and the PiP video appears, you will likely receive these notifications:

  1. UIScene.willEnterForegroundNotification
发布评论

评论列表(0)

  1. 暂无评论