call method

Future<void> call({
  1. required String receiverCuid,
  2. required String callContext,
  3. Map<String, dynamic>? callOptions,
  4. required SignedCallVoIPCallHandler voIPCallHandler,
})

Initiates a VoIP call

receiverCuid - cuid of the person whomsoever call needs to be initiated callContext - context(reason) of the call that is displayed on the call screen callOptions - configuration(metadata) for a VoIP call voIPCallHandler - to get the initialization update(i.e. success/failure)

Implementation

Future<void> call(
    {required String receiverCuid,
    required String callContext,
    Map<String, dynamic>? callOptions,
    required SignedCallVoIPCallHandler voIPCallHandler}) {
  return CleverTapSignedCallFlutterPlatform.instance
      .call(receiverCuid, callContext, callOptions, voIPCallHandler);
}