示例#1
0
        private static BootstrapperConfig CreateBootstrapperConfig(UIKit.UIApplication application, Foundation.NSDictionary launchOptions)
        {
            var config = new BootstrapperConfig();

            config.SetSimpleIoc(new SimpleIoc());

            return(config);
        }
示例#2
0
        public static void Execute(UIKit.UIApplication application, Foundation.NSDictionary launchOptions)
        {
            SetupFlexiMvvm();
            SetupResources();

            var config = CreateBootstrapperConfig(application, launchOptions);

            ExecuteBootstrappers(config);
        }
示例#3
0
        public override bool OpenUrl(UIKit.UIApplication p_app, Foundation.NSUrl p_url, Foundation.NSDictionary p_options)
        {
            var    doc  = new UIKit.UIDocument(p_url);
            string path = doc.FileUrl?.Path;

            if (!string.IsNullOrEmpty(path))
            {
                _ = Startup.Launch <Stub>(null, new ShareInfo(path));
            }

            return(true);
        }
示例#4
0
 public override void PerformFetch(UIKit.UIApplication application, Action <UIKit.UIBackgroundFetchResult> completionHandler)
 {
     Shiny.Jobs.JobManager.OnBackgroundFetch(completionHandler);
     base.PerformFetch(application, completionHandler);
 }
示例#5
0
        public static bool ContinueUserActivity(this IWebAuthenticator webAuthenticator, UIKit.UIApplication application, Foundation.NSUserActivity userActivity, UIKit.UIApplicationRestorationHandler completionHandler)
        {
            var uri = userActivity?.WebPageUrl?.AbsoluteString;

            if (string.IsNullOrEmpty(uri))
            {
                return(false);
            }

            return(webAuthenticator.OpenUrl(new Uri(uri)));
        }
示例#6
0
 public static bool OpenUrl(this IWebAuthenticator webAuthenticator, UIKit.UIApplication app, Foundation.NSUrl url, Foundation.NSDictionary options) =>
 webAuthenticator.OpenUrl(new Uri(url.AbsoluteString));
示例#7
0
 //
 // 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(UIKit.UIApplication app, Foundation.NSDictionary options)
 {
     Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     return(base.FinishedLaunching(app, options));
 }
示例#8
0
 public static void Init(UIKit.UIApplication app, Foundation.NSDictionary launchOptions)
 {
     FacebookApi.IsUsingNative = true;
     fb.CoreKit.ApplicationDelegate.SharedInstance.FinishedLaunching(app, launchOptions);
     FacebookApi.ShowFacebookAuthenticator = (a) => invoker.BeginInvokeOnMainThread(() => Login(a));
 }
示例#9
0
 public static bool OpenUrl(UIKit.UIApplication app, Foundation.NSUrl url, string sourceApp, Foundation.NSObject annotation)
 {
     return(fb.CoreKit.ApplicationDelegate.SharedInstance.OpenUrl(app, url, sourceApp, annotation));
 }