Skip to content

Most visited

Recently visited

navigation

TransportStateListener

public class TransportStateListener
extends Object

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


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

Summary

Public constructors

TransportStateListener()

Public methods

void onPlayingChanged(TransportController controller)

The play state of the transport changed.

void onTransportControlsChanged(TransportController controller)

The available controls of the transport changed.

Inherited methods

From class java.lang.Object

Public constructors

TransportStateListener

TransportStateListener ()

Public methods

onPlayingChanged

void onPlayingChanged (TransportController controller)

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

Parameters
controller TransportController

onTransportControlsChanged

void onTransportControlsChanged (TransportController controller)

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.