PictureInPictureModeChangedInfo

Added in 1.8.0

class PictureInPictureModeChangedInfo


Class that encapsulates the information that is delivered when Activity.onPictureInPictureModeChanged is dispatched to a OnPictureInPictureModeChangedProvider.

Summary

Public constructors

PictureInPictureModeChangedInfo(isInPictureInPictureMode: Boolean)
@RequiresApi(value = 26)
PictureInPictureModeChangedInfo(
    isInPictureInPictureMode: Boolean,
    newConfig: Configuration
)

Construct an instance that contains the new picture-in-picture mode and the new configuration with the new picture-in-picture mode applied.

Public properties

Boolean

Gets the new picture-in-picture mode.

Configuration

Public constructors

PictureInPictureModeChangedInfo

Added in 1.8.0
PictureInPictureModeChangedInfo(isInPictureInPictureMode: Boolean)

PictureInPictureModeChangedInfo

Added in 1.8.0
@RequiresApi(value = 26)
PictureInPictureModeChangedInfo(
    isInPictureInPictureMode: Boolean,
    newConfig: Configuration
)

Construct an instance that contains the new picture-in-picture mode and the new configuration with the new picture-in-picture mode applied.

Parameters
isInPictureInPictureMode: Boolean

True if the activity is in picture-in-picture mode.

newConfig: Configuration

The new configuration of the activity with the state {@param isInPictureInPictureMode}.

Public properties

isInPictureInPictureMode

Added in 1.8.0
val isInPictureInPictureModeBoolean

Gets the new picture-in-picture mode.

Returns
Boolean

True if the activity is in picture-in-picture mode.

newConfig

Added in 1.8.0
val newConfigConfiguration