reportCallEnded static method

Future<void> reportCallEnded({
  1. required String? sessionId,
})

Report that the current active call has been ended by your application

Implementation

static Future<void> reportCallEnded({
  required String? sessionId,
}) async {
  if (!Platform.isAndroid && !Platform.isIOS) return Future.value();

  return _methodChannel.invokeMethod("reportCallEnded", {
    'session_id': sessionId,
  });
}