←Select platform

Initialize Method

Summary
Initializes the LEADTOOLS class library for use.

Xamarin Framework Deprecation

As of LEADTOOLS v23, The cross-platform Xamarin framework has been deprecated and replaced with LEADTOOLS .NET MAUI framework.

For any LEADTOOLS Xamarin apps you have already built, we recommend you migrate to the LEADTOOLS .NET MAUI framework. To help you with the migration, review the LEADTOOLS .NET MAUI tutorials to get you started.

This change is driven by Microsoft's announcement to end Xamarin support.

Syntax
C#
C++/CLI
Java
// .NET Standard 
public static void Initialize(object applicationContext) 
public static void initialize( 
   java.lang.Object object 
); 
public: 
static void Initialize();  

Parameter

applicationContext

For Xamarin, pass your application context that derives from Xamarin.Forms.Page or Android.App.Activity.

Remarks

If you set a valid runtime license for your application using SetLicense, then you do not need to call this static method.

If you do not set a valid runtime license for your application using SetLicense, then you must call this static method prior to using any other LEADTOOLS functionality. This method must be called from the main / UI thread of your application. Failure to call this method as described above will cause other LEADTOOLS methods to throw a Kernel Expired exception or behave in an undefined manner.

Requirements

Target Platforms

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.