_internal/js/twilio library

Acts as interface for the Twilio Voice JS SDK The 2 main components of Twilio Voice SDK are:

  1. Twilio.Device - This is the main object that is used to interact with the Twilio Voice SDK. Documentation:
  1. Twilio.Call - This is the object that represents a call. It is returned by the Twilio.Device.connect() method. Documentation:

The Twilio Voice JS SDK is loaded by the plugin itself (it is bundled as an asset), so window.Twilio is available before these bindings are used - see TwilioVoiceWeb on web and TVWebView on macOS.

Interop notes: these types bind to existing JS globals via dart:js_interop extension types. @JS("<name>") names the JS object/member being bound; keep the JS and Dart names synonymous for readers, future devs and debugging. They are consumed from twilio_voice_web.dart.

Extension Types

Twilio
Base namespace for the Twilio Voice JS SDK. Both Twilio.Device and Twilio.Call live under this global object.