enableExtension abstract method
Future<void>
enableExtension({
- required String provider,
- required String extension,
- bool enable = true,
- MediaSourceType type = MediaSourceType.unknownMediaSource,
Enables or disables an extension.
To enable multiple extensions, you need to call this method multiple times. After this method is called successfully, no other extensions can be loaded.
providerThe name of the extension provider.extensionThe name of the extension.enableWhether to enable the extension: true : Enable the extension. false : Disable the extension.typeThe media source type of the extension. See MediaSourceType.
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. See Error Codes for details and resolution suggestions.
Implementation
Future<void> enableExtension(
{required String provider,
required String extension,
bool enable = true,
MediaSourceType type = MediaSourceType.unknownMediaSource});