setExtensionProperty abstract method
Future<void>
setExtensionProperty({
- required String provider,
- required String extension,
- required String key,
- required String value,
- MediaSourceType type = MediaSourceType.unknownMediaSource,
Sets an extension property.
After enabling the extension, you can call this method to set its properties. To set properties for multiple extensions, call this method multiple times.
providerThe name of the extension provider.extensionThe name of the extension.keyThe key of the extension property.valueThe value corresponding to the extension property key.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> setExtensionProperty(
{required String provider,
required String extension,
required String key,
required String value,
MediaSourceType type = MediaSourceType.unknownMediaSource});