protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); FirebasePushNotificationManager.ProcessIntent(this, Intent); //#if DEBUG // FirebasePushNotificationManager.Initialize(this, new PushNotificationHandler(), true); //#else // FirebasePushNotificationManager.Initialize(this,new CustomPushHandler(),false); //#endif CrossMedia.Current.Initialize(); Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, savedInstanceState); #region PDF SBSDKInitializer.Initialize(this.Application, licenseKey, new SBSDKConfiguration { EnableLogging = true, StorageBaseDirectory = GetStorageBaseDirectory() }); #endregion }
public override void OnCreate() { base.OnCreate(); Log.Debug(LOG_TAG, "Initializing Scanbot SDK..."); SBSDKInitializer.Initialize(this, licenseKey, new SBSDKConfiguration { EnableLogging = true }); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Console.WriteLine("Scanbot SDK Example: Initializing Scanbot SDK..."); SBSDKInitializer.Initialize(app, licenseKey, new SBSDKConfiguration { EnableLogging = true }); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override void OnCreate() { base.OnCreate(); Log.Debug(LOG_TAG, "Initializing Scanbot SDK..."); // Initialization with a custom, public(!) "StorageBaseDirectory" for demo purposes - see comments below! SBSDKInitializer.Initialize(this, LICENSE_KEY, new SBSDKConfiguration { EnableLogging = true, StorageBaseDirectory = GetDemoStorageBaseDirectory() }); // Alternative initialization with the default "StorageBaseDirectory" which will be internal and secure (recommended). //SBSDKInitializer.Initialize(this, LICENSE_KEY, new SBSDKConfiguration { EnableLogging = true }); }
public override void OnCreate() { base.OnCreate(); var configuration = new SBSDKConfiguration { StorageImageFormat = CameraImageFormat.Png, StorageImageQuality = 80, EnableLogging = true }; Log.Debug(LOG_TAG, "Initializing Scanbot SDK..."); SBSDKInitializer.Initialize(this, licenseKey, configuration); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { ImagePicker.Forms.iOS.DependencyManager.Register(); Console.WriteLine("Scanbot SDK Example: Initializing Scanbot SDK..."); SBSDKInitializer.Initialize(app, LICENSE_KEY, new SBSDKConfiguration { EnableLogging = true, StorageBaseDirectory = GetDemoStorageBaseDirectory(), DetectorType = DocumentDetectorType.MLBased }); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Console.WriteLine("Scanbot SDK Example: Initializing Scanbot SDK..."); // Initialization with a custom "StorageBaseDirectory" for demo purposes - see comments below. SBSDKInitializer.Initialize(app, LICENSE_KEY, new SBSDKConfiguration { EnableLogging = true, StorageBaseDirectory = GetDemoStorageBaseDirectory() }); // Alternative initialization with the default "StorageBaseDirectory". //SBSDKInitializer.Initialize(app, LICENSE_KEY, new SBSDKConfiguration { EnableLogging = true }); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override void OnCreate() { base.OnCreate(); Log.Debug(LOG_TAG, "Initializing Scanbot SDK..."); // Initialization with a custom, public(!) "StorageBaseDirectory" // for demo purposes - see comments below! var configuration = new SBSDKConfiguration { EnableLogging = true, // If no StorageBaseDirectory is specified, the default will be used StorageBaseDirectory = GetDemoStorageBaseDirectory(), DetectorType = DocumentDetectorType.MLBased }; SBSDKInitializer.Initialize(this, LICENSE_KEY, configuration); }
// // 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 uiApplication, NSDictionary launchOptions) { var configuration = new SBSDKConfiguration { StorageImageFormat = CameraImageFormat.Png, StorageImageQuality = 80, EnableLogging = true }; Console.WriteLine("Scanbot SDK Example: Initializing Scanbot SDK..."); SBSDKInitializer.Initialize(uiApplication, licenseKey, configuration); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(uiApplication, launchOptions)); }