/// <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; } }
protected internal override void onPause() { base.onPause(); // unregister to stop callback DeployGate.unregisterCallback(this); }
protected internal override void onResume() { base.onResume(); // register for callback, also request refreshing (second argument) DeployGate.registerCallback(this, true); }
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(); }
public override void OnCreate() { base.OnCreate(); DeployGate.Install(this, null, true); }