Added in API level 16
SimpleCallback
open class SimpleCallback : MediaRouter.Callback
kotlin.Any | ||
↳ | android.media.MediaRouter.Callback | |
↳ | android.media.MediaRouter.SimpleCallback |
Stub implementation of MediaRouter.Callback
. Each abstract method is defined as a no-op. Override just the ones you need.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
onRouteAdded(router: MediaRouter!, info: MediaRouter.RouteInfo!) |
open Unit |
onRouteChanged(router: MediaRouter!, info: MediaRouter.RouteInfo!) |
open Unit |
onRouteGrouped(router: MediaRouter!, info: MediaRouter.RouteInfo!, group: MediaRouter.RouteGroup!, index: Int) |
open Unit |
onRouteRemoved(router: MediaRouter!, info: MediaRouter.RouteInfo!) |
open Unit |
onRouteSelected(router: MediaRouter!, type: Int, info: MediaRouter.RouteInfo!) |
open Unit |
onRouteUngrouped(router: MediaRouter!, info: MediaRouter.RouteInfo!, group: MediaRouter.RouteGroup!) |
open Unit |
onRouteUnselected(router: MediaRouter!, type: Int, info: MediaRouter.RouteInfo!) |
open Unit |
onRouteVolumeChanged(router: MediaRouter!, info: MediaRouter.RouteInfo!) |
Inherited functions | |
---|---|
Public constructors
SimpleCallback
SimpleCallback()
Public methods
onRouteAdded
Added in API level 16
open fun onRouteAdded(
router: MediaRouter!,
info: MediaRouter.RouteInfo!
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
info |
MediaRouter.RouteInfo!: Route that has become available for use |
onRouteChanged
Added in API level 16
open fun onRouteChanged(
router: MediaRouter!,
info: MediaRouter.RouteInfo!
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
info |
MediaRouter.RouteInfo!: The route that was changed |
onRouteGrouped
Added in API level 16
open fun onRouteGrouped(
router: MediaRouter!,
info: MediaRouter.RouteInfo!,
group: MediaRouter.RouteGroup!,
index: Int
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
info |
MediaRouter.RouteInfo!: The route that was added |
group |
MediaRouter.RouteGroup!: The group the route was added to |
index |
Int: The route index within group that info was added at |
onRouteRemoved
Added in API level 16
open fun onRouteRemoved(
router: MediaRouter!,
info: MediaRouter.RouteInfo!
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
info |
MediaRouter.RouteInfo!: Route that has been removed from availability |
onRouteSelected
Added in API level 16
open fun onRouteSelected(
router: MediaRouter!,
type: Int,
info: MediaRouter.RouteInfo!
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
type |
Int: Type flag set indicating the routes that have been selected |
info |
MediaRouter.RouteInfo!: Route that has been selected for the given route types |
onRouteUngrouped
Added in API level 16
open fun onRouteUngrouped(
router: MediaRouter!,
info: MediaRouter.RouteInfo!,
group: MediaRouter.RouteGroup!
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
info |
MediaRouter.RouteInfo!: The route that was removed |
group |
MediaRouter.RouteGroup!: The group the route was removed from |
onRouteUnselected
Added in API level 16
open fun onRouteUnselected(
router: MediaRouter!,
type: Int,
info: MediaRouter.RouteInfo!
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
type |
Int: Type flag set indicating the routes that have been unselected |
info |
MediaRouter.RouteInfo!: Route that has been unselected for the given route types |
onRouteVolumeChanged
Added in API level 16
open fun onRouteVolumeChanged(
router: MediaRouter!,
info: MediaRouter.RouteInfo!
): Unit
Parameters | |
---|---|
router |
MediaRouter!: the MediaRouter reporting the event |
info |
MediaRouter.RouteInfo!: The route with altered volume |