Udostępnij za pośrednictwem


MediaRouter.Callback.OnRouteSelected Method

Definition

Called when the supplied route becomes selected as the active route for the given route type.

[Android.Runtime.Register("onRouteSelected", "(Landroid/media/MediaRouter;ILandroid/media/MediaRouter$RouteInfo;)V", "GetOnRouteSelected_Landroid_media_MediaRouter_ILandroid_media_MediaRouter_RouteInfo_Handler")]
public abstract void OnRouteSelected (Android.Media.MediaRouter router, Android.Media.MediaRouteType type, Android.Media.MediaRouter.RouteInfo info);
[<Android.Runtime.Register("onRouteSelected", "(Landroid/media/MediaRouter;ILandroid/media/MediaRouter$RouteInfo;)V", "GetOnRouteSelected_Landroid_media_MediaRouter_ILandroid_media_MediaRouter_RouteInfo_Handler")>]
abstract member OnRouteSelected : Android.Media.MediaRouter * Android.Media.MediaRouteType * Android.Media.MediaRouter.RouteInfo -> unit

Parameters

router
MediaRouter

the MediaRouter reporting the event

type
MediaRouteType

Type flag set indicating the routes that have been selected

info
MediaRouter.RouteInfo

Route that has been selected for the given route types

Attributes

Remarks

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