// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); // Please provide Beeblex your API Key // If you don't have one go to: // https://www.beeblex.com BBXBeeblex.InitializeWithAPIKey("Your API Key Here"); viewController = new BeeblexDemoViewController(); window.RootViewController = viewController; window.MakeKeyAndVisible(); return(true); }
partial void ShowApiKey(MonoTouch.UIKit.UIButton sender) { // You can make sure BBXBeeblex has your API Key // by checking it's ApiKey Property UIAlertView alert; BBXBeeblex beeblex = BBXBeeblex.SharedInstance; if (beeblex.ApiKey != null) { alert = new UIAlertView("Here is it:", beeblex.ApiKey, null, "Ok, Thanks!", null); alert.Show(); } else { alert = new UIAlertView("Failure", "Did you provide your API Key to BBXBeeblex?", null, "Ok", null); alert.Show(); } }