Exemple #1
0
        /// <summary>
        /// Called when the log buttons clicked. Each button has ID that can be used
        /// to change log level.
        /// </summary>
        /// <param name="v"> View instance of the button </param>
        public virtual void onLogClick(View v)
        {
            string text = mLogMessage.Text.ToString();

            switch (v.Id)
            {
            case R.id.logError:
                DeployGate.logError(text);
                break;

            case R.id.logWarn:
                DeployGate.logWarn(text);
                break;

            case R.id.logDebug:
                DeployGate.logDebug(text);
                break;

            case R.id.logInfo:
                DeployGate.logInfo(text);
                break;

            case R.id.logVerbose:
                DeployGate.logVerbose(text);
                break;

            default:
                return;
            }
        }
Exemple #2
0
        protected internal override void onPause()
        {
            base.onPause();

            // unregister to stop callback
            DeployGate.unregisterCallback(this);
        }
Exemple #3
0
        protected internal override void onResume()
        {
            base.onResume();

            // register for callback, also request refreshing (second argument)
            DeployGate.registerCallback(this, true);
        }
Exemple #4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create our OpenGL view, and display it
            Game1.Activity = this;
            var g = new Game1();

            SetContentView(g.Window);

            DeployGate.LogDebug("起動しました!");

            g.Run();
        }
Exemple #5
0
        public override void OnCreate()
        {
            base.OnCreate();

            DeployGate.Install(this, null, true);
        }