Added in API level 30
ControllerCallback
abstract class ControllerCallback
kotlin.Any | |
↳ | android.media.MediaRouter2.ControllerCallback |
Callback for receiving RoutingController
updates.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
onControllerUpdated(controller: MediaRouter2.RoutingController) Called when a controller is updated. |
Public constructors
ControllerCallback
ControllerCallback()
Public methods
onControllerUpdated
Added in API level 30
open fun onControllerUpdated(controller: MediaRouter2.RoutingController): Unit
Called when a controller is updated. (e.g., when the selected routes of the controller is changed or when the volume of the controller is changed.)
Parameters | |
---|---|
controller |
MediaRouter2.RoutingController: the updated controller. It may be the system controller . This value cannot be null . |
See Also