PictureInPictureDelegate.Event


class PictureInPictureDelegate.Event


Represents the PiP event emitted from the system.

Summary

Public companion properties

PictureInPictureDelegate.Event

App has fully settled in PiP mode, app usually needs to switch its Activity layout to PiP mode.

PictureInPictureDelegate.Event

Entering PiP animation ends, apps usually do not need to take actions for this state.

PictureInPictureDelegate.Event

Entering PiP animation starts, this offers an app the chance to hide UI elements such as the overlays upon the video player.

PictureInPictureDelegate.Event

App has exited PiP mode, app usually needs to switch its Activity layout to full-screen mode.

PictureInPictureDelegate.Event

PiP window is stashed.

PictureInPictureDelegate.Event

PiP window is un-stashed.

Public functions

open String

Public companion properties

ENTERED

val ENTEREDPictureInPictureDelegate.Event

App has fully settled in PiP mode, app usually needs to switch its Activity layout to PiP mode. Compatibility notes: this event is available since API 24, see also PictureInPictureModeChangedInfo.isInPictureInPictureMode.

ENTER_ANIMATION_END

val ENTER_ANIMATION_ENDPictureInPictureDelegate.Event

Entering PiP animation ends, apps usually do not need to take actions for this state. Compatibility notes: this event is available since API 35, see also PictureInPictureUiStateCompat.isTransitioningToPip

ENTER_ANIMATION_START

val ENTER_ANIMATION_STARTPictureInPictureDelegate.Event

Entering PiP animation starts, this offers an app the chance to hide UI elements such as the overlays upon the video player. Compatibility notes: this event is available since API 35, see also PictureInPictureUiStateCompat.isTransitioningToPip.

EXITED

val EXITEDPictureInPictureDelegate.Event

App has exited PiP mode, app usually needs to switch its Activity layout to full-screen mode. Compatibility notes: this event is available since API 24, see also PictureInPictureModeChangedInfo.isInPictureInPictureMode.

STASHED

val STASHEDPictureInPictureDelegate.Event

PiP window is stashed. A stashed PiP means it is only partially visible to the user, with some parts of it being off-screen. Compatibility notes: this event is available since API 31, see also PictureInPictureUiStateCompat.isStashed.

UNSTASHED

val UNSTASHEDPictureInPictureDelegate.Event

PiP window is un-stashed. A stashed PiP means it is only partially visible to the user, with some parts of it being off-screen. Compatibility notes: this event is available since API 31, see also PictureInPictureUiStateCompat.isStashed.

Public functions

toString

open fun toString(): String