loadExtensionProvider abstract method

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

Adds an extension to the SDK.

(For Windows and Android only)

  • 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});