Device class
Constructors
- Device(String token, [DeviceInitOptions? options])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBusy → bool
-
Returns true if the device is on an active call
Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceisbusy
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String
-
Get current device token
Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#devicetoken
no setter
Methods
-
connect(
[DeviceConnectOptions? options]) → Promise< Call> - Connect to Twilio Voice Client Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#connect
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off(
String event, Function callback) → void - Detach event listener for Twilio Device object. See TwilioDeviceEvents Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#events possibly use js interop here
-
on(
String event, Function callback) → void - 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
-
register(
) → Promise< void> - Register device token with Twilio Voice Client Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceregister
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
) → Promise< void> - Unregister device token with Twilio Voice Client Documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceunregister
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited