enableSoundPositionIndication method Null safety

Future<void> enableSoundPositionIndication(
  1. bool enabled
)

Enables/Disables stereo panning for remote users.

Ensure that you call this method before RtcEngine.joinChannel to enable stereo panning for remote users so that the local user can track the position of a remote user by calling RtcEngine.setRemoteVoicePosition.

Parameter enabled Sets whether or not to enable stereo panning for remote users:

  • true: enables stereo panning.
  • false: disables stereo panning.

Implementation

@override
Future<void> enableSoundPositionIndication(bool enabled) {
  return _invokeMethod('enableSoundPositionIndication', {
    'enabled': enabled,
  });
}