// // 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) { global::Xamarin.Forms.Forms.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); CrossPlatformHelper <ICameraPreview> .AddImplementation(new CameraPreview()); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public MainPage() { this.InitializeComponent(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); CrossPlatformHelper <IImageResizer> .AddImplementation(new ImageResizer()); CrossPlatformHelper <ICameraPreview> .AddImplementation(new CameraPreview()); LoadApplication(new ObjectDetectionApp.App()); }
public void StartApp() { CrossPlatformHelper <IImageResizer> .AddImplementation(new ImageResizer()); CrossPlatformHelper <ICameraPreview> .AddImplementation(new CameraPreview()); CrossCurrentActivity.Current.Init(this, SavedInstanceState); global::Xamarin.Forms.Forms.Init(this, SavedInstanceState); LoadApplication(new App()); }