Microsoft.Xna.Framework.AndroidGamePlatform.AndroidGamePlatform C# (CSharp) Method

AndroidGamePlatform() public method

public AndroidGamePlatform ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System
        public AndroidGamePlatform(Game game)
            : base(game)
        {
            System.Diagnostics.Debug.Assert(Game.Activity != null, "Must set Game.Activity before creating the Game instance");
            Game.Activity.Game = Game;
            AndroidGameActivity.Paused += Activity_Paused;
            AndroidGameActivity.Resumed += Activity_Resumed;

            _gameWindow = new AndroidGameWindow(Game.Activity, game);
            Window = _gameWindow;

            MediaLibrary.Context = Game.Activity;
        }