Android Guides | Samples

Android.Media.MediaRouterCallbackFlags Enumeration

Enumerates values returned by several types and taken as a parameter of the MediaRouter.AddCallback member.

Syntax

[System.Flags]
public enum MediaRouterCallbackFlags

Remarks

Members

Member NameDescription
PerformActiveScan

Flag for MediaRouter.AddCallback(MediaRouteType,Callback): Actively scan for routes while this callback is registered.

When this flag is specified, the media router will actively scan for new routes. Certain routes, such as wifi display routes, may not be discoverable except when actively scanning. This flag is typically used when the route picker dialog has been opened by the user to ensure that the route information is up to date.

Active scanning may consume a significant amount of power and may have intrusive effects on wireless connectivity. Therefore it is important that active scanning only be requested when it is actually needed to satisfy a user request to discover and select a new route.

UnfilteredEvents

Flag for MediaRouter.AddCallback(MediaRouteType,Callback): Do not filter route events.

When this flag is specified, the callback will be invoked for event that affect any route event if they do not match the callback's associated media route selector.

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Media.MediaRouterCallbackFlags are listed below.

See Also: Enum

Public Fields

PerformActiveScanMediaRouterCallbackFlags.

Flag for MediaRouter.AddCallback(MediaRouteType,Callback): Actively scan for routes while this callback is registered.

When this flag is specified, the media router will actively scan for new routes. Certain routes, such as wifi display routes, may not be discoverable except when actively scanning. This flag is typically used when the route picker dialog has been opened by the user to ensure that the route information is up to date.

Active scanning may consume a significant amount of power and may have intrusive effects on wireless connectivity. Therefore it is important that active scanning only be requested when it is actually needed to satisfy a user request to discover and select a new route.

UnfilteredEventsMediaRouterCallbackFlags.

Flag for MediaRouter.AddCallback(MediaRouteType,Callback): Do not filter route events.

When this flag is specified, the callback will be invoked for event that affect any route event if they do not match the callback's associated media route selector.