android - AndroidStudio 4 说 enterPictureInPicture 自 API 26 起已弃用 - 这是不正确的,对吧?
问题描述
显示警告的 AndroidStudio 屏幕截图:
然而我在这里发现的是:
Android 8.0 (API level 26) allows activities to launch in picture-in-picture (PIP) mode.
PIP is a special type of multi-window mode mostly used for video playback. It lets the
user watch a video in a small window pinned to a corner of the screen while navigating
between apps or browsing content on the main screen.
我无法找到现在已弃用的地方。我错过了什么还是 AS 有错误?我想确保我没有在死路上编码。
解决方案
enterPictureInPictureMode()
在 API 24 中引入并在 API 26 中弃用。它已被 取代enterPictureInPictureMode(PictureInPictureParams)
,在 API 26 中引入。
推荐阅读
- parameters - 处理类和实例问题
- javascript - jQuery popover 在 Django 应用程序中不起作用?
- reactjs - 在 http-proxy-middleware 的 setupProxy.js 中反应导入环境生成意外标识符
- php - 如何根据当前登录用户codeigniter获取/检索数据,但外键连接到另一个外键
- c# - 在 Unity 中应用多个旋转
- mysql - 参数化查询 - M 语言 (Excel)
- reactjs - 有没有办法为 ReactJs 中的 material-ui 组件提供全局类?
- azure - 从 Azure 数据工厂中的 API 获取而不复制 URL
- c# - 如何用军事时间进行简单的计算?
- angular - 如何根据 HTTP 响应限制/停止 Angular 应用程序加载