VIIncomingCall typedef

VIIncomingCall = void Function(VIClient client, VICall call, bool video, Map<String, String>? headers)

Signature for callbacks reporting that there is a new incoming call to the current user.

Used in VIClient.

It provides a VICall instance for the incoming call and optional SIP headers, and indicates if the caller initiated a video call.

client - VIClient instance initiated the event

call - Incoming call represented by VICall instance

video - Indicates if the caller initiated a video call

headers - Optional SIP headers

Implementation

typedef void VIIncomingCall(
  VIClient client,
  VICall call,
  bool video,
  Map<String, String>? headers,
);