Partager via


MediaRouter.CreateUserRoute(MediaRouter+RouteCategory) Method

Definition

Create a new user route that may be modified and registered for use by the application.

[Android.Runtime.Register("createUserRoute", "(Landroid/media/MediaRouter$RouteCategory;)Landroid/media/MediaRouter$UserRouteInfo;", "GetCreateUserRoute_Landroid_media_MediaRouter_RouteCategory_Handler")]
public virtual Android.Media.MediaRouter.UserRouteInfo? CreateUserRoute (Android.Media.MediaRouter.RouteCategory? category);
[<Android.Runtime.Register("createUserRoute", "(Landroid/media/MediaRouter$RouteCategory;)Landroid/media/MediaRouter$UserRouteInfo;", "GetCreateUserRoute_Landroid_media_MediaRouter_RouteCategory_Handler")>]
abstract member CreateUserRoute : Android.Media.MediaRouter.RouteCategory -> Android.Media.MediaRouter.UserRouteInfo
override this.CreateUserRoute : Android.Media.MediaRouter.RouteCategory -> Android.Media.MediaRouter.UserRouteInfo

Parameters

category
MediaRouter.RouteCategory

The category the new route will belong to

Returns

A new UserRouteInfo for use by the application

Attributes

Remarks

Java documentation for android.media.MediaRouter.createUserRoute(android.media.RouteCategory).

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

See also

  • <xref:Android.Media.MediaRouter.AddUserRoute(.UserRouteInfo)>
  • <xref:Android.Media.MediaRouter.RemoveUserRoute(.UserRouteInfo)>
  • <xref:Android.Media.MediaRouter.CreateRouteCategory(Java.Lang.ICharSequence%2c+System.Boolean)>