ControlRequestCallback
abstract class ControlRequestCallback
kotlin.Any | |
↳ | androidx.mediarouter.media.MediaRouter.ControlRequestCallback |
Callback which is invoked with the result of a media control request.
Summary
Public constructors | |
---|---|
<init>() Callback which is invoked with the result of a media control request. |
Public methods | |
---|---|
open Unit |
Called when a media control request fails. |
open Unit |
Called when a media control request succeeds. |
Public constructors
<init>
ControlRequestCallback()
Callback which is invoked with the result of a media control request.
See Also
Public methods
onError
open fun onError(
error: String!,
data: Bundle!
): Unit
Called when a media control request fails.
Parameters | |
---|---|
error |
String!: A localized error message which may be shown to the user, or null if the cause of the error is unclear. |
data |
Bundle!: Error data, or null if none. Contents depend on the media control action . |
onResult
open fun onResult(data: Bundle!): Unit
Called when a media control request succeeds.
Parameters | |
---|---|
data |
Bundle!: Result data, or null if none. Contents depend on the media control action . |