.NET MAUI Extension methods.UseCarmentaEngine Methods
Runs some necessary initialization code to setup a Carmenta Engine MAUI application.
Overload List
Name | Description | |
---|---|---|
UseCarmentaEngine() | Runs some necessary initialization code to setup a Carmenta Engine MAUI application. | |
UseCarmentaEngine(System.String licenseKey) | Runs some necessary initialization code to setup a Carmenta Engine MAUI application with the given license key. |
UseCarmentaEngine()
Runs some necessary initialization code to setup a Carmenta Engine MAUI application.Syntax
public static void UseCarmentaEngine ()
UseCarmentaEngine(System.String licenseKey)
Runs some necessary initialization code to setup a Carmenta Engine MAUI application with the given license key.Syntax
public static void UseCarmentaEngine (
System.String licenseKey
)
Parameters
A Carmenta Engine license key. String containing the XML document with the license information.
Remarks
The UseCarmentaEngine methods should be used instead of Runtime.Initialize, when developing a .NET MAUI application, to handle the initialization of Carmenta Engine in a platform independent way. The call to Runtime.Initialize, and AndroidUtils.PreInitialize on Android, and the call to Runtime.Shutdown will be handled by the call to UseCarmentaEngine and done at the appropriate time on different platforms. Any errors that occur during initialization, like for example an invalid license, are reported by raising the Runtime.Error event, but no exceptions are thrown.
Platforms
Windows, Linux, Android