コード例 #1
0
ファイル: AppDelegate.cs プロジェクト: MADMUC/TAP5050
 public override void DidEnterBackground(UIApplication application)
 {
     // Use this method to release shared resources, save user data, invalidate timers and store the application state.
     // If your application supports background exection this method is called instead of WillTerminate when the user quits.
     navigationController.Dispose();
     loginScreenController.Dispose ();
     navigationController=new UINavigationController();
     loginScreenController=new LoginScreenController();
     navigationController.PushViewController(loginScreenController,false);
     Window.RootViewController = navigationController;
 }
コード例 #2
0
ファイル: AppDelegate.cs プロジェクト: MADMUC/TAP5050
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // create a new window instance based on the screen size
            Window = new UIWindow (UIScreen.MainScreen.Bounds);

            // If you have defined a root view controller, set it here:
            navigationController=new UINavigationController();
            loginScreenController=new LoginScreenController();
            navigationController.PushViewController(loginScreenController,true);
            Window.RootViewController = navigationController;

            Profile.EnableUpdatesOnAccessTokenChange (true);
            Settings.AppID = RaffleDetailData.c_facebookAppID;
            Settings.DisplayName = "RaffleBük";

            // make the window visible
            Window.MakeKeyAndVisible ();

            return ApplicationDelegate.SharedInstance.FinishedLaunching (application, launchOptions);
        }
コード例 #3
0
ファイル: AppDelegate.cs プロジェクト: MADMUC/TAP5050
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            //set up pushnotifications
            if (UIDevice.CurrentDevice.CheckSystemVersion (8, 0)) {
            var pushSettings = UIUserNotificationSettings.GetSettingsForTypes (
                    UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound,
                    new NSSet ());

                UIApplication.SharedApplication.RegisterUserNotificationSettings (pushSettings);
                UIApplication.SharedApplication.RegisterForRemoteNotifications ();
            } else {
                UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound;
                UIApplication.SharedApplication.RegisterForRemoteNotificationTypes (notificationTypes);
            }

            // create a new window instance based on the screen size
            Window = new UIWindow (UIScreen.MainScreen.Bounds);

            // If you have defined a root view controller, set it here:
            navigationController=new UINavigationController();
            loginScreenController=new LoginScreenController();
            navigationController.PushViewController(loginScreenController,true);
            Window.RootViewController = navigationController;

            Profile.EnableUpdatesOnAccessTokenChange (true);
            Settings.AppID = RaffleDetailData.c_facebookAppID;
            Settings.DisplayName = "RaffleBük";

            // make the window visible
            Window.MakeKeyAndVisible ();

            return ApplicationDelegate.SharedInstance.FinishedLaunching (application, launchOptions);
        }
コード例 #4
0
ファイル: AppDelegate.cs プロジェクト: MADMUC/TAP5050
 public override void WillEnterForeground(UIApplication application)
 {
     // Called as part of the transiton from background to active state.
     // Here you can undo many of the changes made on entering the background.
     navigationController.Dispose();
     loginScreenController.Dispose();
     navigationController = new UINavigationController();
     loginScreenController = new LoginScreenController();
     navigationController.PushViewController(loginScreenController, false);
     Window.RootViewController = navigationController;
 }