Example #1
0
 public void onInitStateChanged(InitStateChangedEvent e)
 {
     if (e.state == InitStateChangedEvent.InitState.INITIALIZED)
     {
         _form.onPlatformReady();
     }
 }
        private void OnADLInitStateChanged(object sender, InitStateChangedEvent e)
        {
            if (e.state == InitStateChangedEvent.InitState.ERROR)
            {
                if (_retryCount <= MaxRetryCount)
                {
                    _retryCount++;
                    Debug.WriteLine("Retying init");
                    Platform.init(_dispatcher);
                    return;
                }
                Debug.WriteLine("Failed to initialize platform. Cause: " + e.errMessage + "(" + e.errCode + ")");
                return;
            }
            InitializeCDOEventListener();

            Debug.WriteLine("Platform initialized. Proceeding with the initialization");

            PostInitializePlatform();
        }
Example #3
0
        private void onADLInitStateChanged(object sender, InitStateChangedEvent e)
        {
            if (e.state == InitStateChangedEvent.InitState.ERROR)
            {
                logE("Failed to initialize platform. Cause: " + e.errMessage + "(" + e.errCode + ")");
                return;
            }
            logD("Platform initialized. Proceeding with the initialization");
            Platform.Service.getVersion(Platform.R <string>(onVersion, genErrHandler("getVersion")));
            initializeCDOEventListener();
            Platform.Service.setApplicationId(genGenericResponder <object>("setApplicationId"), APPLICATION_ID);
            Platform.Service.addServiceListener(genGenericResponder <object>("addServiceListener"), _eDispatcher);

            Platform.Service.getAudioCaptureDeviceNames(
                Platform.R <Dictionary <string, string> >(onAudioCaptureDevices));
            Platform.Service.getAudioOutputDeviceNames(
                Platform.R <Dictionary <string, string> >(onAudioOutputDevices));
            Platform.Service.getVideoCaptureDeviceNames(
                Platform.R <Dictionary <string, string> >(onVideoCaptureDevices));
        }
Example #4
0
 public void onInitStateChanged(InitStateChangedEvent e)
 {
     _initState = e.state;
     _errMsg    = e.errMessage;
     _latch.Signal();
 }