call_screen_service 0.0.8 copy "call_screen_service: ^0.0.8" to clipboard
call_screen_service: ^0.0.8 copied to clipboard

PlatformAndroid

A service for android CallScreenService api

call_screen_service #

This Flutter plugin provides call screening functionality using Android's CallScreeningService. It allows you to intercept incoming calls and handle them accordingly, such as blocking or answering them.

Getting Started #

Define your callback function

@pragma('vm:entry-point')
Future<CallScreenResponse> receivedCall(CallScreenInfo info) {
    debugPrint("Ya!, received call from phone number: ${info.phone}");
    return Future.value(CallScreenResponse(reject: true));
}

Once function is defined. Initialize the plugin

await CallScreenService.initialise(receivedCall);
0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A service for android CallScreenService api

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on call_screen_service