DeviceOptions class
Device options Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceoptions
- Annotations
- 
    - @anonymous
- @JS.new()
 
Constructors
Properties
- allowIncomingWhileBusy ↔ bool
- 
  Not implemented yet
Whether the Device instance should raise the 'incoming' event when a new call invite is received while already on an active call.
set to false by default
  getter/setter pair
- closeProtection ↔ bool
- 
  Setting this property to true will enable a dialog prompt with the text "A call is currently in progress. Leaving or reloading the page will end the call." when closing a page which has an active connection.
Setting the property to a string will create a custom message prompt with that string. If custom text is not supported by the browser, Twilio will display the browser's default dialog.
  getter/setter pair
- 
  codecPreferences
  ↔ List<String> 
- 
  An array of codec names ordered from most-preferred to least-preferred.
Opus and PCMU are the two codecs currently supported by Twilio Voice JS SDK. Opus can provide better quality for lower bandwidth, particularly noticeable in poor network conditions.
Default: "pcmu", "opus"getter/setter pair
- enableImprovedSignalingErrorPrecision ↔ bool
- 
  Whether to enable improved precision for signaling errors. Instead of catch-all 31005 type error codes, more specific error codes will be returned.
  getter/setter pair
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- logLevel ↔ int
- 
  The Voice JavaScript SDK exposes a loglevel-based logger to allow for runtime logging configuration.
  getter/setter pair
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- sounds ↔ dynamic
- 
  The sound files to use for the Device's ringtone and other sounds. This should be a map of sound names to URLs but the Map type is not supported in JS interop yet so we use dynamic with jsify.
  getter/setter pair
- tokenRefreshMs ↔ int?
- 
  The time in milliseconds after which the Device will attempt to refresh its access token.
  getter/setter pair
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited