public abstract class

MediaRouter.ControlRequestCallback

extends java.lang.Object

 java.lang.Object

↳androidx.mediarouter.media.MediaRouter.ControlRequestCallback

Overview

Callback which is invoked with the result of a media control request.

Summary

Constructors
publicControlRequestCallback()

Methods
public voidonError(java.lang.String error, Bundle data)

Called when a media control request fails.

public voidonResult(Bundle data)

Called when a media control request succeeds.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public ControlRequestCallback()

Methods

public void onResult(Bundle data)

Called when a media control request succeeds.

Parameters:

data: Result data, or null if none. Contents depend on the media control action.

public void onError(java.lang.String error, Bundle data)

Called when a media control request fails.

Parameters:

error: A localized error message which may be shown to the user, or null if the cause of the error is unclear.
data: Error data, or null if none. Contents depend on the media control action.