on method

  1. @JS("on")
void on(
  1. String event,
  2. Function callback
)

Attach event listener for Twilio Device object. See TwilioDeviceEvents Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#events possibly use js interop here

Implementation

@JS("on")
external void on(String event, Function callback);