首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AndroidStudio 4说enterPictureInPicture是从API 26开始的--这是不正确的,对吗?

AndroidStudio 4说enterPictureInPicture是从API 26开始的--这是不正确的,对吗?
EN

Stack Overflow用户
提问于 2020-09-03 15:33:04
回答 1查看 1.1K关注 0票数 1

显示警告的AndroidStudio屏幕截图:

然而,我发现这里是:

代码语言:javascript
复制
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.

我哪儿也找不到这回事了。我是遗漏了什么还是错了?我想确定我不是在编码一条死胡同。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-03 15:53:13

enterPictureInPictureMode()在API 24中引入,在API 26中被废弃。它已经被API 26中引入的enterPictureInPictureMode(PictureInPictureParams)所取代。

这里的文档:https://developer.android.com/reference/android/app/Activity#enterPictureInPictureMode(android.app.PictureInPictureParams)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63726982

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档