コード例 #1
0
ファイル: AppDelegate.cs プロジェクト: gitter-badger/blimey
        public override void FinishedLaunching(NSObject notification)
        {
            var appSettings = new AppSettings ("Blimey Platform Demo") {
                FullScreen = true,
                MouseGeneratesTouches = true
            };

            var entryPoint = new BasicApp ();

            IApi api = new Api ();

            platform = new Platform (api);
            platform.Start (appSettings, entryPoint);
        }
コード例 #2
0
ファイル: AppDelegate.cs プロジェクト: gitter-badger/blimey
        // This method is invoked when the application has
        // loaded its UI and is ready to run
        public override Boolean FinishedLaunching(
			MonoTouch.UIKit.UIApplication app,
			MonoTouch.Foundation.NSDictionary options)
        {
            var appSettings = new AppSettings ("Blimey Platform Demo") {
                MouseGeneratesTouches = true
            };

            var entryPoint = new BasicApp();

            IApi xamarinIOSApiImplementation = new Api ();
            platform = new Platform (xamarinIOSApiImplementation);
            platform.Start (appSettings, entryPoint);

            return true;
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: gitter-badger/blimey
        public static void Main(String[] args)
        {
            var appSettings = new AppSettings ("Blimey Platform Demo") {
                FullScreen = true,
                MouseGeneratesTouches = true
            };

            var entryPoint = new BasicApp();

            IApi api = new Api ();

            using (var platform = new Platform (api))
            {
                platform.Start (appSettings, entryPoint);

                (api as Api).Run ();

                platform.Stop ();
            }
        }