Updates enterPictureInPicture API doc

enterPictureInPicture doc is updated with the instruction on how to
override the picture-in-picture window size.

Bug: 144849584
Change-Id: Ia36b307d8620924848dfee6856c90b68edc22f35
This commit is contained in:
Hongwei Wang
2020-04-06 17:04:45 -07:00
parent 9d3f588858
commit 57ab7c7707

View File

@@ -2823,6 +2823,11 @@ public class Activity extends ContextThemeWrapper
* The system may disallow entering picture-in-picture in various cases, including when the
* activity is not visible, if the screen is locked or if the user has an activity pinned.
*
* <p>By default, system calculates the dimension of picture-in-picture window based on the
* given {@param params}.
* See <a href="{@docRoot}guide/topics/ui/picture-in-picture">Picture-in-picture Support</a>
* on how to override this behavior.</p>
*
* @see android.R.attr#supportsPictureInPicture
* @see PictureInPictureParams
*