destroyConference method

  1. @override
Future<int> destroyConference()
override

Destroys the existing conference bridge.

Invokes the native 'destroyConference' method via MethodChannel.

Returns 0 on success, -1 or error code on failure.

Implementation

@override
Future<int> destroyConference() async {
  _logCall('destroyConference');
  try {
    final result = await methodChannel.invokeMethod<int>('destroyConference');
    _logResponse('destroyConference', result);
    return result ?? -1;
  } on PlatformException catch (e) {
    _logError('destroyConference', e);
    return -1;
  }
}