Skip to content

Most visited

Recently visited

navigation

TransportStateListener

public class TransportStateListener
extends Object

java.lang.Object
   ↳ android.support.v4.media.TransportStateListener


This class was deprecated in API level 25.3.0.
Use MediaControllerCompat.Callback.

A listener for playback changes that can be registered with TransportController.

Summary

Public constructors

TransportStateListener()

This constructor was deprecated in API level 25.3.0. Use MediaControllerCompat.Callback.

Public methods

void onPlayingChanged(TransportController controller)

This method was deprecated in API level 25.3.0. Use onPlaybackStateChanged(PlaybackStateCompat).

void onTransportControlsChanged(TransportController controller)

This method was deprecated in API level 25.3.0. Use onPlaybackStateChanged(PlaybackStateCompat).

Inherited methods

From class java.lang.Object

Public constructors

TransportStateListener

TransportStateListener ()

This constructor was deprecated in API level 25.3.0.
Use MediaControllerCompat.Callback.

Public methods

onPlayingChanged

void onPlayingChanged (TransportController controller)

This method was deprecated in API level 25.3.0.
Use onPlaybackStateChanged(PlaybackStateCompat).

The play state of the transport changed. Use TransportController.isPlaying() to determine the new state.

Parameters
controller TransportController

onTransportControlsChanged

void onTransportControlsChanged (TransportController controller)

This method was deprecated in API level 25.3.0.
Use onPlaybackStateChanged(PlaybackStateCompat).

The available controls of the transport changed. Use getTransportControlFlags() TransportController.getTransportControlFlags()} to determine the new state.

Parameters
controller TransportController
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.