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

added in version 22.0.0
TransportStateListener ()

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

Public methods

onPlayingChanged

added in version 22.0.0
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

added in version 22.0.0
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.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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.