MonoGame library for menus and game state management.
This library currently is available for MonoGame.iOS & MonoGame.Android
To use RevMobBuddy in your project, install the Nuget package:
https://www.nuget.org/packages/RevMobBuddy/
For several examples of how to use RevMobBuddy, a complete game with screens and all the various ads can be used as a recipe:
https://github.com/dmanning23/RevMobBuddySample
Install the RevMob component from the Xamarin Component Store. The RevMobBuddy currently only works with version 9.2.2, so make sure that is the version you install.
add line to manifest.xml:
<activity android:name="com.revmob.FullscreenActivity" android:theme="@android:style/Theme.Translucent" android:configChanges="keyboardHidden|orientation"></activity>
in Activity, put game inside a FrameLayout:
_mainLayout = new FrameLayout(this);
_mainLayout.AddView(gameView);
SetContentView(_mainLayout);
add IAdManager service in Activity.OnCreate
game.Services.AddService<IAdManager>(new AndroidRevMobManager(g, _mainLayout));
call IAdManager.Initialze in Game.Initialize
var ads = Services.GetService<IAdManager>();
ads.Initialize();
Install the RevMob component from the Xamarin Component Store. The RevMobBuddy currently only works with version 9.2.2, so make sure that is the version you install.
add IAdManager service in Program.RunGame
game.Services.AddService<IAdManager>(new iOSRevMobManager());
call IAdManager.Initialze in Game.Initialize
var ads = Services.GetService<IAdManager>();
ads.Initialize();