Stay organized with collections Save and categorize content based on your preferences.

OnMultiWindowModeChangedProvider

public interface OnMultiWindowModeChangedProvider

Known direct subclasses
ComponentActivity

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

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.

FragmentActivity

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


Interface for components that can dispatch calls from onMultiWindowModeChanged.

Summary

Public methods

abstract void

Add a new listener that will get a callback associated with onMultiWindowModeChanged with the new MultiWindowModeChangedInfo.

abstract void

Remove a previously added listener.

Public methods

addOnMultiWindowModeChangedListener

abstract void addOnMultiWindowModeChangedListener(
    @NonNull Consumer<MultiWindowModeChangedInfo> listener
)

Add a new listener that will get a callback associated with onMultiWindowModeChanged with the new MultiWindowModeChangedInfo.

Parameters
@NonNull Consumer<MultiWindowModeChangedInfo> listener

The listener that should be called whenever onMultiWindowModeChanged was called.

removeOnMultiWindowModeChangedListener

abstract void removeOnMultiWindowModeChangedListener(
    @NonNull Consumer<MultiWindowModeChangedInfo> listener
)

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

Parameters
@NonNull Consumer<MultiWindowModeChangedInfo> listener

The listener previously added with addOnMultiWindowModeChangedListener that should be removed.