initialize static method
- String? appAuthorization,
- bool allowInternetConnection = true,
- AutoUpdateSettings autoUpdateSettings = const AutoUpdateSettings(),
- void onSdkException()?,
Initialize the Magic Lane Flutter SDK.
All Magic Lane SDK objects must be used only after a successful call to this function
Parameters
appAuthorization: Application token that enables the SDK. Required for evaluation SDKs. The map will have a watermark and some features might not work as expected without this parameter.allowInternetConnection: Allow the SDK to use internet connection for map data, routing, traffic, etc. Default istrue.autoUpdateSettings: Auto update settings specifying what types of resources should be updated automatically.onSdkException: Callback invoked when an SDK exception occurs.
Implementation
static Future<void> initialize({
final String? appAuthorization,
final bool allowInternetConnection = true,
final AutoUpdateSettings autoUpdateSettings = const AutoUpdateSettings(),
final void Function(SdkEvent, String)? onSdkException,
}) => GemKitPlatform.instance.loadNative(
appAuthorization: appAuthorization,
autoUpdateSettings: autoUpdateSettings,
allowInternetConnection: allowInternetConnection,
onSdkException: onSdkException,
);