canSetUserVolume method
Determine which audio you can set, shared audio or microphone.
userId
the identify of the user
isShareAudio
true: if the user is sharing audio, otherwise false
Return true if can set user volume, otherwise false
Implementation
Future<bool> canSetUserVolume(String userId, bool isShareAudio) async {
var params = <String, dynamic>{};
params.putIfAbsent("userId", () => userId);
params.putIfAbsent("isShareAudio", () => isShareAudio);
return await methodChannel
.invokeMethod<bool>('canSetUserVolume', params)
.then<bool>((bool? value) => value ?? false);
}