enableAudioReceive method

FutureOr<int> enableAudioReceive(
  1. NSString userId,
  2. BOOL enable
)

@detail api @author luomingkang @brief 是否订阅指定用户的音频流。 @param userId 用户 ID,最大长度为128字节的非空字符串。支持的字符集范围为:
1. 26个大写字母 A ~ Z
2. 26个小写字母 a ~ z
3. 10个数字 0 ~ 9
4. 下划线"_", at符"@", 减号"-" @param enable 是否订阅音频流:
true:订阅指定用户的音频流。 false:默认设置。不订阅指定用户的音频流。 @return - 0:接口调用成功 - -2:传入的用户 ID 为空字符串。

Implementation

FutureOr<int> enableAudioReceive(NSString userId, BOOL enable) async {
  return await nativeCall('enableAudioReceive:enable:', [userId, enable]);
}