enableAudioReceive method
@detail api
@author luomingkang
@brief Whether to subscribe to the audio stream of a specified user.
@param userId User ID, a non-empty string with a maximum length of 128 bytes. The supported character set range is:
1. 26 capital letters A ~ Z
2. 26 lowercase letters a ~ z
3. 10 numbers 0 ~ 9
4. Underscore "_", at sign "@", minus sign "-"
@param enable Whether to subscribe to the audio stream:
- true:Subscribe to the audio stream of the specified user.
- false:Default setting, unsubscribe to the audio stream of the specified user.
@return
0: Success.
-2: Failure. The provided userId is an empty string.
Implementation
FutureOr<int> enableAudioReceive(NSString userId, BOOL enable) async {
return await nativeCall('enableAudioReceive:enable:', [userId, enable]);
}