unloadBlinkIdSdk method

  1. @override
Future<void> unloadBlinkIdSdk({
  1. bool deleteCachedResources = false,
})
override

The unloadBlinkIdSdk platform channel method terminates the BlinkID SDK and releases all associated resources.

This method safely shuts down the SDK instance and frees any allocated memory. After calling this method, you must reinitialize the SDK (by calling `loadBlinkIdSdk` or any of the scanning methods) before using it again.

The method accepts a single bool parameter, deleteCachedResources.

If set to true (false is default), the method performs a complete cleanup, including deletion of all downloaded and cached SDK resources from the device.

This method is automatically called after each successful scan session.

Implementation

@override
Future<void> unloadBlinkIdSdk({bool deleteCachedResources = false}) async {
  await methodChannel.invokeMethod(ARG_UNLOAD_BLINKID_SDK, {
    ARG_DELETE_CACHED_RESOURCES: jsonDecode(
      jsonEncode(deleteCachedResources),
    ),
  });
}