Android Guides | Samples

Android.App.MediaRouteActionProvider Class

The media route action provider displays a MediaRouteButton in the application's ActionBar to allow the user to select routes and to control the currently selected route.

See Also: MediaRouteActionProvider

Syntax

[Android.Runtime.Register("android/app/MediaRouteActionProvider", DoNotGenerateAcw=true)]
public class MediaRouteActionProvider : ActionProvider

Remarks

The media route action provider displays a MediaRouteButton in the application's ActionBar to allow the user to select routes and to control the currently selected route.

The application must specify the kinds of routes that the user should be allowed to select by specifying the route types with the MediaRouteActionProvider.SetRouteTypes(MediaRouteType) method.

Refer to MediaRouteButton for a description of the button that will appear in the action bar menu. Note that instead of disabling the button when no routes are available, the action provider will instead make the menu item invisible. In this way, the button will only be visible when it is possible for the user to discover and select a matching route.

[Android Documentation]

Requirements

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

The members of Android.App.MediaRouteActionProvider are listed below.

See Also: ActionProvider

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

override
OnCreateActionView() : View
Factory method called by the Android framework to create new action views.
SetExtendedSettingsClickListener(View+IOnClickListener)
SetRouteTypes(MediaRouteType)
Sets the types of routes that will be shown in the media route chooser dialog launched by this button.

Public Events