Call class
- Inheritance
-
- Object
- PlatformInterface
- SharedPlatformInterface
- TwilioCallPlatform
- MethodChannelTwilioCall
- Call
Constructors
- Call()
Properties
- activeCall ↔ ActiveCall?
-
Gets active call
getter/setter pairinherited
-
callEventsController
→ StreamController<
String> -
no setterinherited
-
callEventsStream
→ Stream<
String> -
no setterinherited
- eventChannel → EventChannel
-
Communication to flutter code
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastQualityWarnings → CallQualityEvent?
-
The most recent CallQualityEvent, or null if none has been reported for the current call.
no setterinherited
-
qualityWarnings
→ Stream<
CallQualityEvent> -
Stream of CallQualityEvents for current call.
no setterinherited
-
qualityWarningsController
→ StreamController<
CallQualityEvent> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Communication with native code
no setterinherited
Methods
-
answer(
) → Future< bool?> -
Answers incoming call
inherited
-
clearQualityWarnings(
) → void -
Clears lastQualityWarnings, called when a call ends so a stale value is not reported against the next call.
inherited
-
connect(
{Map< String, dynamic> ? extraOptions}) → Future<bool?> -
Places new call using raw parameters passed directly to Twilio's REST API endpoint 'makeCall'. Returns true if successful, false otherwise.
inherited
-
getSid(
) → Future< String?> -
Gets the active call's SID. This will be null until the first Ringing event occurs
inherited
-
hangUp(
) → Future< bool?> -
Hangs up active call
inherited
-
holdCall(
{bool holdCall = true}) → Future< bool?> -
Holds active call
holdCallis respected in web only, in native it will always toggle the hold state. In future, native mobile will also respect theholdCallvalue.inherited -
isBluetoothOn(
) → Future< bool?> -
Query's bluetooth status, true if bluetooth is on.
inherited
-
isHolding(
) → Future< bool?> -
Query's active call holding state
inherited
-
isMuted(
) → Future< bool?> -
Query's mute status of call, true if call is muted
inherited
-
isOnCall(
) → Future< bool> -
Checks if there is an ongoing call
inherited
-
isOnSpeaker(
) → Future< bool?> -
Switches Audio Device
Query's speaker output status, true if on loud speaker.
inherited
-
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
separatorto joinprefixanddescription. 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?> -
Places new call
inherited
-
sendDigits(
String digits) → Future< bool?> -
Send digits to active call
inherited
-
toggleBluetooth(
{bool bluetoothOn = true}) → Future< bool?> -
Toggles bluetooth for active call
inherited
-
toggleMute(
bool isMuted) → Future< bool?> -
Toggles mute state to provided value
inherited
-
toggleSpeaker(
bool speakerIsOn) → Future< bool?> -
Toggles speaker state to provided value
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateQualityWarnings(
CallQualityEvent event) → void -
Records
eventas lastQualityWarnings and publishes it to qualityWarnings. Occurs when a new CallQualityEvent is received from the native platform.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited