CallwaveFlutterPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- CallwaveFlutterPlatform
Constructors
Properties
-
events
→ Stream<
CallEventDto> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptCall(
String callId) → Future< void> - Accepts an active incoming call.
-
allowOutgoingRingback(
String callId, {required String requestId}) → Future< void> - Acknowledges host permission for this outgoing attempt; never waits for playback.
-
canScheduleExactAlarms(
) → Future< bool> - Returns whether the app can schedule exact alarms (Android 12+). Default implementation returns true (e.g. iOS).
-
clearBackgroundIncomingCallValidator(
) → Future< void> -
clearCallState(
String callId) → Future< void> -
Clears any persisted/native call restore state for
callId. -
confirmAcceptedCall(
String callId) → Future< void> - Marks an accepted call as safe to open/connect.
-
declineCall(
String callId) → Future< void> - Declines an active incoming call.
-
endCall(
String callId) → Future< void> -
getActiveCallEventSnapshots(
) → Future< List< CallEventDto> > - Returns a snapshot of active call event state (as opposed to emitting via the event stream).
-
getActiveCallIds(
) → Future< List< String> > -
initialize(
) → Future< void> -
markMissed(
String callId, {Map< String, dynamic> ? extra}) → Future<void> -
Marks a call as missed.
extracan include outcome reason for validation rejections (e.g.outcomeReason). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerBackgroundIncomingCallValidator(
{required int backgroundDispatcherHandle, int? backgroundCallbackHandle, int? backgroundDeclineCallbackHandle}) → Future< void> -
reportOutgoingCallScreenHidden(
String callId, {required String requestId}) → Future< void> - Clears visibility while startup is pending; does not pause playing sound.
-
reportOutgoingCallScreenVisible(
String callId, {required String requestId}) → Future< void> - Allows one pending outgoing ringback attempt to start after UI navigation. Android always uses visibility; iOS uses it in app-controlled mode.
-
requestExactAlarmPermission(
) → Future< void> - Opens system settings for exact alarm permission (Android 12+). Default implementation is a no-op.
-
requestFullScreenIntentPermission(
) → Future< void> -
requestNotificationPermission(
) → Future< bool> -
setPostCallBehavior(
PostCallBehavior behavior) → Future< void> - Configures post-call behavior when the user ends a call via endCall.
-
showIncomingCall(
CallDataDto data) → Future< void> -
showOutgoingCall(
CallDataDto data) → Future< void> -
syncActiveCallsToEvents(
) → Future< void> - Re-emits native snapshots for currently active calls.
-
syncCallConnectedState(
String callId, {required int connectedAtMs}) → Future< void> - Persists the connected timestamp for an active ongoing call so the platform can restore timer continuity after process death.
-
takePendingStartupAction(
) → Future< CallStartupActionDto?> - Returns and clears a one-shot startup action captured before Flutter finished initializing.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ CallwaveFlutterPlatform
-
getter/setter pair