MediaRouteProvider.Callback


public abstract class MediaRouteProvider.Callback


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

Summary

Public constructors

Public methods

void

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

Public constructors

Callback

Added in 1.1.0
public Callback()

Public methods

onDescriptorChanged

Added in 1.1.0
public void onDescriptorChanged(
    @NonNull MediaRouteProvider provider,
    @Nullable MediaRouteProviderDescriptor descriptor
)

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

Parameters
@NonNull MediaRouteProvider provider

The media route provider that changed, never null.

@Nullable MediaRouteProviderDescriptor descriptor

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