app_call_button library

Main library file for the app_call_button package.

This library re-exports all core components, models, screens, and third-party dependencies needed to use the AppCallButton plugin.

Exports

  • Core functionality: ./core/core.dart
  • Models: ./model/model.dart
  • Screens: ./screens/screens.dart
  • Third-party overlay manager: flutter_overlay_manager

Classes

AppSipController
A singleton controller responsible for managing SIP registration, WebRTC streams, call states, and UI overlays.
CallingScreen
Screen displaying the SIP calling UI.
CallingWidget
Root call widget handling call rendering, call initialization, audio session, microphone, keypad, and UI state.
CallStateChangedEvent
Internal event: Fired when SIP call state changes, such as ringing, accepted, confirmed, ended, failed, etc.
DisableVoiceCallModeEvent
Event: Disable Voice Call Audio Mode and return to normal audio routing.
EnableVoiceCallModeEvent
Event: Enable Voice Call Audio Mode on the native platform.
EndCallEvent
Event: End the current call and clean up all call-related streams/resources.
FlutterOverlayManager
InitializeSipEvent
Event: Initialize a SIP session using the provided configuration.
MakeCallEvent
Event: Make a voice call to the given SIP target address.
MuteMicrophoneEvent
Event: Mute the microphone during a call.
OverlayLayout
OverlayLayoutState
SendDtmfEvent
Event: Send DTMF tone during an active call.
SipConfigModel
Model class representing SIP configuration settings for a user account.
SipControllerBloc
A BLoC implementation responsible for managing SIP registration, handling call lifecycle, maintaining media streams, handling network recovery, and updating the UI state for SIP/WebRTC operations.
SipControllerError
Error state used when SIP actions fail.
SipControllerEvent
Base class for all SIP controller events.
SipControllerInitial
Initial state before SIP is configured or started.
SipControllerLoaded
Loaded/active state containing latest SIP information.
SipControllerLoading
Loading state used when SIP is initializing, registering, or performing blocking operations such as starting the SIP UA.
SipControllerState
Base state class for the SIP controller BLoC.
StartLocalStreamEvent
Event: Start audio streaming by requesting microphone access.
StopLocalStreamEvent
Event: Stop audio streaming and release audio tracks.
UnmuteMicrophoneEvent
Event: Unmute the microphone.
UnregisterSipEvent
Event: Unregister from SIP server and stop SIP services.
UpdateCallDurationEvent
Internal event: Updates the call duration timer every second when the call is in the CONFIRMED state.