MethodChannelTwilioCall class
Methods
-
answer()
→ Future<bool?>
-
Answers incoming call
override
-
getSid()
→ Future<String?>
-
Gets the active call's SID. This will be null until the first Ringing event occurs
override
-
hangUp()
→ Future<bool?>
-
Hangs up active call
override
-
holdCall({bool holdCall = true})
→ Future<bool?>
-
Holds active call
holdCall
is respected in web only, in native it will always toggle the hold state.
In future, native mobile will also respect the holdCall
value.
override
-
isBluetoothOn()
→ Future<bool?>
-
Query's bluetooth status, true if bluetooth is on.
override
-
isHolding()
→ Future<bool?>
-
Query's active call holding state
override
-
isMuted()
→ Future<bool?>
-
Query's mute status of call, true if call is muted
override
-
isOnCall()
→ Future<bool>
-
Checks if there is an ongoing call
override
-
isOnSpeaker()
→ Future<bool?>
-
Switches Audio Device
Query's speaker output status, true if on loud speaker.
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, })
→ Future<bool?>
-
Places new call
override
-
sendDigits(String digits)
→ Future<bool?>
-
Send digits to active call
override
-
toggleBluetooth({bool bluetoothOn = true})
→ Future<bool?>
-
Toggles bluetooth for active call
override
-
toggleMute(bool isMuted)
→ Future<bool?>
-
Toggles mute state to provided value
override
-
toggleSpeaker(bool speakerIsOn)
→ Future<bool?>
-
Toggles speaker state to provided value
override
-
toString()
→ String
-
A string representation of this object.
inherited