Esempio n. 1
0
        protected override Variable Evaluate(ParsingScript script)
        {
            List <Variable> args = script.GetFunctionArgs();

            Utils.CheckArgs(args.Count, 1, m_name);

            string      varName = Utils.GetSafeString(args, 0);
            ImageEditor editor  = Utils.GetVariable(varName, script) as ImageEditor;

            Utils.CheckNotNull(editor, m_name, script);

            string initArg = Utils.GetSafeString(args, 1);

            editor.Start(initArg);

            return(editor);
        }
Esempio n. 2
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            Console.WriteLine("OnActivityResult {0}: {1}, {2}, {3}",
                              requestCode, resultCode, (int)resultCode, data);
            if (requestCode == TTS.TTS_REQUEST_DATA ||
                requestCode == TTS.TTS_INSTALLED_DATA ||
                requestCode == TTS.TTS_CHECK_DATA)
            {
                TTS.OnTTSResult(requestCode, resultCode, data);
            }
            else if (requestCode == STT.STT_REQUEST)
            {
                STT.SpeechRecognitionCompleted(resultCode, data);
                //} else if (requestCode == InAppBilling.IAP_REQUEST) {
                //  InAppBilling.OnIAPCallback(requestCode, resultCode, data);
            }
            else if (requestCode == ImageEditor.SELECT_FROM_GALLERY ||
                     requestCode == ImageEditor.SELECT_FROM_CAMERA)
            {
                ImageEditor.OnActivityResult(requestCode, resultCode, data);
            }

            base.OnActivityResult(requestCode, resultCode, data);
        }