MethodChannelCallDetector class

Inheritance

Constructors

MethodChannelCallDetector()

Properties

callStateStream → Stream<CallState>
Emits the current state to every new listener, then each change.
latefinal
currentState → CallState
The most recently known call state.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
Balances one initialize call. Monitoring stops, and an inactive state is emitted, only when the last caller disposes.
override
initialize() → Future<void>
Starts monitoring. Reference counted: each call must be balanced by a dispose call.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVoipDetectionEnabled(bool enabled) → Future<void>
Enables or disables VoIP/video call detection. Phone calls are always detected.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

eventChannel → const EventChannel
methodChannel → const MethodChannel