Callback

abstract class Callback
kotlin.Any
   ↳ androidx.mediarouter.media.MediaRouteProvider.Callback

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

Summary

Public constructors

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

Public methods
open Unit
onDescriptorChanged(@NonNull provider: MediaRouteProvider, @Nullable descriptor: MediaRouteProviderDescriptor?)

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

Public constructors

<init>

Callback()

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

Public methods

onDescriptorChanged

open fun onDescriptorChanged(@NonNull provider: MediaRouteProvider, @Nullable 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 MediaRouteProvider: The new media route provider descriptor, or null if none.