PictureInPictureUiStateCompat
A compatibility shim for the framework class PictureInPictureUiState. This class is safe to reference across all API levels.
Types
Link copied to clipboard
object Companion
Factory method to safely create a PictureInPictureUiStateCompat instance from the framework's PictureInPictureUiState object.
Properties
Link copied to clipboard
Returns whether Picture-in-Picture is stashed or not. A stashed PiP means it is only partially visible to the user, with some parts of it being off-screen. This is usually a UI state that is triggered by the user, such as flinging the PiP to the edge or letting go of PiP while dragging partially off-screen.
Link copied to clipboard
Returns true if the app is going to enter Picture-in-Picture (PiP) mode.