FlutterVoipKit class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- callActionHandler ↔ CallActionHandler?
-
handle call action requests and return if event is successful or not
similar to callStateChangeHandler, but handles any action that is not a call state change
See CallAction enum for list of actions
getter/setter pair
-
callListStream
→ Stream<
List< Call> > -
list of current active calls
no setter
- callStateChangeHandler ↔ CallStateChangeHandler?
-
handle call state changes and return if event is successful or not
The most important setup of flutter_voip_kit
If all states are not accounted for, your calls may not work
for example: When a call becomes CallState.Connecting your VOIP service should perform the connection for that call and return true/false on success
getter/setter pair
Static Methods
-
checkPermissions(
{bool openSettings = false, bool performRequest = true}) → Future< bool> - check if device can handle making calls
-
endCall(
String uuid) → Future< bool> - end call initiated by user. Also could call Call.end()
-
holdCall(
String uuid, {bool onHold = true}) → Future< bool> - hold call initiated by user. Also could call Call.hold()
-
init(
{required CallStateChangeHandler callStateChangeHandler, required CallActionHandler callActionHandler}) → Future< void> -
muteCall(
String uuid, {bool muted = true}) → Future< bool> - mute call initiated by user. Also could call Call.mute
-
reportIncomingCall(
{required String handle, required String uuid}) → Future< bool> - report incoming call from notification This will happen when you're flutter app receives notification on an incoming call and needs to report it to the native OS
-
startCall(
String handle, {String? uuid}) → Future< bool> - start call initiated from user
Constants
- event_answerCall → const String
- event_endCall → const String
- event_reset → const String
- event_setHeld → const String
- event_setMuted → const String
- event_startCall → const String