loadExtensionProvider abstract method

Future<void> loadExtensionProvider({
  1. required String path,
  2. bool unloadAfterUse = false,
})

Loads an extension.

This method is used to add extensions external to the SDK (such as those from Extensions Marketplace and SDK extensions) to the SDK.

  • path The extension library path and name. For example: /library/libagora_segmentation_extension.dll.
  • unloadAfterUse Whether to uninstall the current extension when you no longer using it: true : Uninstall the extension when the RtcEngine is destroyed. false : (Rcommended) Do not uninstall the extension until the process terminates.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> loadExtensionProvider(
    {required String path, bool unloadAfterUse = false});