OnPictureInPictureUiStateChangedProvider


interface OnPictureInPictureUiStateChangedProvider

Known direct subclasses
PictureInPictureProvider

Provider interface to support PiP (Picture-in-Picture) functionalities.

Known indirect subclasses
AppCompatActivity

Base class for activities that wish to use some of the newer platform features on older Android devices.

BaseCarAppActivity

Core logic for CarAppLibrary Activity interaction with a host.

CarAppActivity

The class representing a car app activity in the main display.

ComponentActivity

Base class for activities that enables composition of higher level components.

FragmentActivity

Base class for activities that want to use the support-based Fragments.

LauncherActivity

This class handles providing the right launcher activity when running native applications and Car App Library applications.

PreviewActivity

Activity used to run @Composable previews from Android Studio.


Interface for components that can dispatch calls from Activity.onPictureInPictureUiStateChanged.

Summary

Public functions

Unit

Add a new listener that will get a callback associated with Activity.onPictureInPictureUiStateChanged with the new PictureInPictureUiStateCompat.

Unit

Remove a previously added listener.

Public functions

addOnPictureInPictureUiStateChangedListener

fun addOnPictureInPictureUiStateChangedListener(
    listener: Consumer<PictureInPictureUiStateCompat>
): Unit

Add a new listener that will get a callback associated with Activity.onPictureInPictureUiStateChanged with the new PictureInPictureUiStateCompat.

Parameters
listener: Consumer<PictureInPictureUiStateCompat>

The listener that should be called whenever Activity.onPictureInPictureUiStateChanged was called.

removeOnPictureInPictureUiStateChangedListener

fun removeOnPictureInPictureUiStateChangedListener(
    listener: Consumer<PictureInPictureUiStateCompat>
): Unit

Remove a previously added listener. It will not receive any future callbacks.

Parameters
listener: Consumer<PictureInPictureUiStateCompat>

The listener previously added with addOnPictureInPictureUiStateChangedListener that should be removed.