public override void OnRoutePresentationDisplayChanged (MediaRouter router, MediaRouter.RouteInfo info) { main.UpdatePresentation (); }
protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.Main); mMediaRouterCallback = new MediaRouterCallback (this); mTextStatus = FindViewById <TextView> (Resource.Id.textStatus); // get the list of background colors mColors = Resources.GetIntArray (Resource.Array.androidcolors); // Enable clicks on the 'change color' button mButton = FindViewById <Button> (Resource.Id.button1); mButton.Click += delegate { ShowNextColor(); }; // Get the MediaRouter service mMediaRouter = (MediaRouter) GetSystemService (Context.MediaRouterService); }
public override void OnRouteUnselected (MediaRouter router, MediaRouteType type, MediaRouter.RouteInfo info) { main.UpdatePresentation (); }