private static BootstrapperConfig CreateBootstrapperConfig(UIKit.UIApplication application, Foundation.NSDictionary launchOptions) { var config = new BootstrapperConfig(); config.SetSimpleIoc(new SimpleIoc()); return(config); }
public static void Execute(UIKit.UIApplication application, Foundation.NSDictionary launchOptions) { SetupFlexiMvvm(); SetupResources(); var config = CreateBootstrapperConfig(application, launchOptions); ExecuteBootstrappers(config); }
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); }
public override void PerformFetch(UIKit.UIApplication application, Action <UIKit.UIBackgroundFetchResult> completionHandler) { Shiny.Jobs.JobManager.OnBackgroundFetch(completionHandler); base.PerformFetch(application, completionHandler); }
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))); }
public static bool OpenUrl(this IWebAuthenticator webAuthenticator, UIKit.UIApplication app, Foundation.NSUrl url, Foundation.NSDictionary options) => webAuthenticator.OpenUrl(new Uri(url.AbsoluteString));
// // 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)); }
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)); }
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)); }