PictureInPictureModeChangedInfo
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)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
PictureInPictureModeChangedInfo(isInPictureInPictureMode: Boolean)
PictureInPictureModeChangedInfo
@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
val isInPictureInPictureMode: Boolean
Gets the new picture-in-picture mode.
| Returns | |
|---|---|
Boolean |
True if the activity is in picture-in-picture mode. |