setAllowIncomingWhileBusy method

  1. @override
Future<bool> setAllowIncomingWhileBusy({
  1. bool allow = true,
})
override

Whether an incoming call invite is accepted while a call handled by this plugin is already active. Defaults to true.

"Busy" only considers calls belonging to this plugin - an unrelated SIM/carrier call does not count.

Implementation

@override
Future<bool> setAllowIncomingWhileBusy({bool allow = true}) {
  return _channel.invokeMethod<bool?>('setAllowIncomingWhileBusy', {"allow": allow}).then<bool>((bool? value) => value ?? false);
}