MediaRouteProvider.Callback


abstract class MediaRouteProvider.Callback


Callback which is invoked when route information becomes available or changes.

Summary

Public constructors

Public functions

Unit
onDescriptorChanged(
    provider: MediaRouteProvider,
    descriptor: MediaRouteProviderDescriptor?
)

Called when information about a route provider and its routes change.

Public constructors

Callback

Added in 1.1.0
Callback()

Public functions

onDescriptorChanged

Added in 1.1.0
fun onDescriptorChanged(
    provider: MediaRouteProvider,
    descriptor: MediaRouteProviderDescriptor?
): Unit

Called when information about a route provider and its routes change.

Parameters
provider: MediaRouteProvider

The media route provider that changed, never null.

descriptor: MediaRouteProviderDescriptor?

The new media route provider descriptor, or null if none.