Android Guides | Samples

Android.Media.MediaRouter.Callback Class

Interface for receiving events about media routing changes.

See Also: MediaRouter+Callback

Syntax

[Android.Runtime.Register("android/media/MediaRouter$Callback", DoNotGenerateAcw=true)]
public abstract class MediaRouter.Callback : Object

Remarks

Interface for receiving events about media routing changes. All methods of this interface will be called from the application's main thread.

A Callback will only receive events relevant to routes that the callback was registered for unless the MediaRouter.CallbackFlagUnfilteredEvents flag was specified in MediaRouter.AddCallback(MediaRouteType,MediaRouter+Callback,MediaRouter+Callback).

See Also

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16

The members of Android.Media.MediaRouter.Callback are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
OnRouteAdded(MediaRouter, MediaRouter+RouteInfo)
Called when a route for the specified type was added.
abstract
OnRouteChanged(MediaRouter, MediaRouter+RouteInfo)
Called when an aspect of the indicated route has changed.
abstract
OnRouteGrouped(MediaRouter, MediaRouter+RouteInfo, MediaRouter+RouteGroup, Int32)
Called when a route is added to a group.
OnRoutePresentationDisplayChanged(MediaRouter, MediaRouter+RouteInfo)
Called when a route's presentation display changes.
abstract
OnRouteRemoved(MediaRouter, MediaRouter+RouteInfo)
Called when a route for the specified type was removed.
abstract
OnRouteSelected(MediaRouter, MediaRouteType, MediaRouter+RouteInfo)
Called when the supplied route becomes selected as the active route for the given route type.
abstract
OnRouteUngrouped(MediaRouter, MediaRouter+RouteInfo, MediaRouter+RouteGroup)
Called when a route is removed from a group.
abstract
OnRouteUnselected(MediaRouter, MediaRouteType, MediaRouter+RouteInfo)
Called when the supplied route becomes unselected as the active route for the given route type.
abstract
OnRouteVolumeChanged(MediaRouter, MediaRouter+RouteInfo)
Called when a route's volume changes.