TwilioVoice class

Inheritance

Constructors

TwilioVoice()

Properties

call TwilioCallPlatform
no setterinherited
callEventsController StreamController<String>
no setterinherited
callEventsListener Stream<CallEvent>
Sends call events
no setterinherited
callEventsStream Stream<String>
no setterinherited
deviceTokenChanged OnDeviceTokenChanged?
getter/setter pairinherited
eventChannel EventChannel
Communication to flutter code
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedChannel MethodChannel
Communication with native code
no setterinherited
showMissedCallNotifications bool
Whether or not should the user receive a notification after a missed call, default to true.
no getterinherited

Methods

hasBluetoothPermissions() Future<bool>
Checks if device has bluetooth permissions Only available on Android Defaults to false
inherited
hasCallPhonePermission() Future<bool>
Checks if device has 'android.permission.CALL_PHONE' permission
inherited
hasManageOwnCallsPermission() Future<bool>
Checks if device has permission to manage system calls
inherited
hasMicAccess() Future<bool>
Checks if device has microphone permission
inherited
hasReadPhoneNumbersPermission() Future<bool>
Checks if device has read phone numbers permission
inherited
hasReadPhoneStatePermission() Future<bool>
Checks if device has read phone state permission
inherited
hasRegisteredPhoneAccount() Future<bool>
Checks if device has a registered phone account
inherited
isPhoneAccountEnabled() Future<bool>
Checks if App's phone account is enabled
inherited
isRejectingCallOnNoPermissions() Future<bool>
Returns true if call is rejected when no CALL_PHONE permissions are granted nor Phone Account (via isPhoneAccountEnabled) is registered. Defaults to false.
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 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
openPhoneAccountSettings() Future<bool>
Open phone account settings
inherited
parseCallEvent(String state) CallEvent
Sends call events
inherited
registerClient(String clientId, String clientName) Future<bool?>
Register clientId for background calls
inherited
registerPhoneAccount() Future<bool>
Register phone account with TelecomManager
inherited
rejectCallOnNoPermissions({bool shouldReject = false}) Future<bool>
Reject call when no CALL_PHONE permissions are granted nor Phone Account (via isPhoneAccountEnabled) is registered. If set to true, the call is rejected immediately upon received. If set to false, the call is left until the timeout is reached / call is canceled. Defaults to false.
inherited
requestBackgroundPermissions() Future<bool?>
Requests background permission
inherited
requestBluetoothPermissions() Future<bool?>
Request bluetooth permissions Only available on Android
inherited
requestCallPhonePermission() Future<bool?>
request 'android.permission.CALL_PHONE' permission
inherited
requestManageOwnCallsPermission() Future<bool?>
Requests system permission to manage calls
inherited
requestMicAccess() Future<bool?>
Request microphone permission
inherited
requestReadPhoneNumbersPermission() Future<bool?>
Request read phone numbers permission
inherited
requestReadPhoneStatePermission() Future<bool?>
Request read phone state permission
inherited
requiresBackgroundPermissions() Future<bool>
Checks if device needs background permission
inherited
setDefaultCallerName(String callerName) Future<bool?>
Set default caller name for no registered clients
inherited
setOnDeviceTokenChanged(OnDeviceTokenChanged deviceTokenChanged) → void
inherited
setTokens({required String accessToken, String? deviceToken}) Future<bool?>
register fcm token, and device token for android
inherited
showBackgroundCallUI() Future<bool?>
Android-only, shows background call UI Deprecated, has no effect
inherited
toString() String
A string representation of this object.
inherited
unregister({String? accessToken}) Future<bool?>
Unregisters from Twilio
inherited
unregisterClient(String clientId) Future<bool?>
Unregister clientId for background calls
inherited
updateCallKitIcon({String? icon}) Future<bool?>
Set iOS call kit icon
inherited

Operators

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

Static Properties

instance TwilioVoicePlatform
no setter