public void DidConnectToCastApplication (GCKDeviceManager deviceManager, GCKApplicationMetadata applicationMetadata, string sessionId, bool launchedApplication)
		{
			Console.WriteLine ("Application has launched");

			var onDidConnectToCastApplication = OnDidConnectToCastApplication;
			if (onDidConnectToCastApplication != null)
				onDidConnectToCastApplication (deviceManager, applicationMetadata, sessionId, launchedApplication);
		}
예제 #2
0
        public void DidConnectToCastApplication(GCKDeviceManager deviceManager, GCKApplicationMetadata applicationMetadata, string sessionId, bool launchedApplication)
        {
            Console.WriteLine("Application has launched");

            var onDidConnectToCastApplication = OnDidConnectToCastApplication;

            if (onDidConnectToCastApplication != null)
            {
                onDidConnectToCastApplication(deviceManager, applicationMetadata, sessionId, launchedApplication);
            }
        }
        void DidConnectToCastApplication(GCKDeviceManager deviceManager, GCKApplicationMetadata applicationMetadata, string sessionId, bool launchedApplication)
        {
            Console.WriteLine("application name: {0}, sessionId: {1}, wasLaunched: {2}",
                              applicationMetadata.ApplicationName,
                              sessionId,
                              launchedApplication);

            _channel = new MyChannel {
                OnDidReceiveTextMessage = DidReceiveTextMessage
            };

            _deviceManager.AddChannel(_channel);

            _applicationStarted = true;

            UpdateButtonStates();

            textName.BecomeFirstResponder();
        }
		void DidConnectToCastApplication (GCKDeviceManager deviceManager, GCKApplicationMetadata applicationMetadata, string sessionId, bool launchedApplication)
		{
			Console.WriteLine("application name: {0}, sessionId: {1}, wasLaunched: {2}",
				applicationMetadata.ApplicationName,
				sessionId,
				launchedApplication);

			_channel = new MyChannel { OnDidReceiveTextMessage = DidReceiveTextMessage };

			_deviceManager.AddChannel (_channel);

			_applicationStarted = true;

			UpdateButtonStates ();

			textName.BecomeFirstResponder ();
		}