Caller class

Constructors

Caller()

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 Methods

checkPermission() Future<bool>
Check if the user has granted permission for READ_PHONE_STATE and READ_CALL_LOG
initialize(dynamic onEventCallbackDispatcher(CallerEvent, String, int)) Future<void>
Register the given callback to be called by the Caller Service even when the app is on background / closed, since each OS Handles background services in a different way, there's no guarantee that this callback will be called immediately after the Phone Call State changes, or be called at all
requestPermissions() Future<void>
Prompt the user to grant permission for the events needed for this plugin to work, READ_PHONE_STATE and READ_CALL_LOG
stopCaller() Future<void>
Stops the service and cleans the previous registered callback