VoipPlugin class

VoIP Plugin - Main entry point

Constructors

VoipPlugin()

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

isInCall bool
Check if in call
no setter
isRegistered bool
Check if registered
no setter
onCallStateChanged ↔ dynamic Function(String status, Map<String, dynamic>? data)?
Callback for call state changes
getter/setter pair
onIncomingCall ↔ dynamic Function(String callerName, String callerId)?
Callback for incoming calls
getter/setter pair
onRegistrationChanged ↔ dynamic Function(bool isRegistered, String status)?
Callback for registration state changes
getter/setter pair

Static Methods

answerCall() Future<void>
Answer incoming call
dispose() Future<void>
Dispose plugin (cleanup)
hangup() Future<void>
Hangup current call
initialize() Future<void>
Initialize the VoIP plugin Call this once at app startup
makeCall(String target) Future<void>
Make a SIP call
register({required String domain, required String username, required String password, String? realm, String? callerId, String? displayName, int port = 5060, bool useWebSocket = false}) Future<bool>
Register with SIP server
registerWithConfig(SipConfig config) Future<bool>
Register using SipConfig object
unregister() Future<void>
Unregister from SIP server