Language

MediaRouteActionProvider.SetRouteTypes(MediaRouteType) Method

Definition

Sets the types of routes that will be shown in the media route chooser dialog launched by this button.

[Android.Runtime.Register("setRouteTypes", "(I)V", "GetSetRouteTypes_IHandler")]
public virtual void SetRouteTypes(Android.Media.MediaRouteType types);
[<Android.Runtime.Register("setRouteTypes", "(I)V", "GetSetRouteTypes_IHandler")>]
abstract member SetRouteTypes : Android.Media.MediaRouteType -> unit
override this.SetRouteTypes : Android.Media.MediaRouteType -> unit

Parameters

types
MediaRouteType

The route types to match.

Attributes

Remarks

Sets the types of routes that will be shown in the media route chooser dialog launched by this button.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.MediaRouteActionProvider.setRouteTypes.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to