DeviceInitOptions class
Device options Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceoptions
- Annotations
-
- @anonymous
- @JS()
Constructors
-
DeviceInitOptions({int logLevel = 1, List<
String> ? codecPreferences, bool closeProtection = false}) -
factory
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 - 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
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