Call class

Inheritance

Constructors

Call({Call? call})

Properties

activeCall ActiveCall?
Gets active call
getter/setter pairinherited
callEventsController StreamController<String>
no setterinherited
callEventsStream Stream<String>
no setterinherited
device Device?
getter/setter pair
eventChannel EventChannel
Communication to flutter code
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
nativeCall Call?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedChannel MethodChannel
Communication with native code
no setterinherited

Methods

answer() Future<bool?>
Answers an inbound call. Returns true if successful, false otherwise. See twilio_js.Call.accept
override
getCallStatus(Call call) CallStatus
getSid() Future<String?>
Not currently implemented for web
override
hangUp() Future<bool?>
Returns true if the call was disconnected, false otherwise. See twilio_js.Call.disconnect
override
holdCall({bool holdCall = true}) Future<bool?>
Not currently implemented for web https://github.com/twilio/twilio-voice.js/issues/32 Call holding should be done server-side as suggested by @ryan-rowland here(https://github.com/twilio/twilio-voice.js/issues/32#issuecomment-1016872545) See this to get started: https://stackoverflow.com/questions/22643800/twilio-how-to-move-an-existing-call-to-a-conference See this for more info on how to use cold holding, and its requirements: https://github.com/twilio/twilio-voice.js/issues/32#issuecomment-1331081241 TODO(cybex-dev) - implement call holding feature in twilio-voice.js for use in twilio_voice_web
override
isBluetoothOn() Future<bool>
Not available for web
override
isHolding() Future<bool>
Not currently implemented for web
override
isMuted() Future<bool>
Is call muted. Returns true if muted, false otherwise.
override
isOnCall() Future<bool>
Returns true if there is an active call, a convenience function for activeCall != null, false otherwise. See MethodChannelTwilioCall.activeCall
override
isOnSpeaker() Future<bool>
Not currently implemented for web
override
logLocalEvent(String description, {String prefix = "LOG", String separator = "|"}) → void
Logs event to EventChannel. This is used to send events to the EventChannel for integration into existing communication flow. The event will be sent as a String with the following format:
inherited
logLocalEventEntries(List<String> entries, {String prefix = "LOG", String separator = "|"}) → void
Logs event to EventChannel, but uses List.join with separator to join prefix and description. This is used to send events to the EventChannel for integration into existing communication flow. The event will be sent as a String with the following format:
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
place({required String from, required String to, Map<String, dynamic>? extraOptions}) Future<bool?>
Place outgoing call from to to. Returns true if successful, false otherwise. Generally accepted format is e164 (e.g. US number +15555555555) alternatively, use 'client:${clientId}' to call a Twilio Client connection Parameters send to Twilio's REST API endpoint 'makeCall' can be passed in extraOptions; Parameters are reduced to this format { "From": from, "To": to, ...extraOptions } See twilio_js.Device.connect
override
sendDigits(String digits) Future<bool?>
Send digits to the call. Returns true if successful, false otherwise. See twilio_js.Call.sendDigits
override
toggleBluetooth({bool bluetoothOn = true}) Future<bool>
Not available for web
override
toggleMute(bool isMuted) Future<bool?>
Toggle mute on/off. Returns true if successful, false otherwise.
override
toggleSpeaker(bool speakerIsOn) Future<bool?>
Not currently implemented for web
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited