setChannelProfile method

  1. @override
Future<void> setChannelProfile(
  1. ChannelProfile profile
)

Sets the channel profile of the Agora RtcEngine.

After initialization, the SDK uses the communication channel profile by default. You can call setChannelProfile to set the channel profile.

Parameter profile The channel profile of the Agora RtcEngine. See ChannelProfile.

Implementation

@override
Future<void> setChannelProfile(ChannelProfile profile) {
  return _invokeMethod('setChannelProfile', {
    'profile': ChannelProfileConverter(profile).value(),
  });
}