示例#1
0
		public override void OnRoutePresentationDisplayChanged (MediaRouter router, MediaRouter.RouteInfo info)
		{
			main.UpdatePresentation ();
		}
示例#2
0
		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);
		}
示例#3
0
		public override void OnRouteUnselected (MediaRouter router, MediaRouteType type, MediaRouter.RouteInfo info)
		{
			main.UpdatePresentation ();
		}