listen_call 0.0.2+2 copy "listen_call: ^0.0.2+2" to clipboard
listen_call: ^0.0.2+2 copied to clipboard

PlatformAndroid

support background listen call phone event in android

listen_call #

support background listen call phone event in android

Permission

    /// requestPhonePermission
    ListenCall.requestPhonePermission;
copied to clipboard

background listen

    ///  callback function
    int a = 0;
    Future onPhoneCall(e) async {
        print(["onPhoneCall", e, a++]);
        print([
            callPhoneInfo["state"] as int,
            callPhoneInfo["incomingNumber"] as String,
            callPhoneInfo["deviceName"] as String
        ]);
    }

    /// init
    ListenCall.initBackgroundCall(onPhoneCall);
copied to clipboard
1
likes
130
points
10
downloads

Publisher

verified publisherautopc.top

Weekly Downloads

2024.08.27 - 2025.03.11

support background listen call phone event in android

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_easy_permission

More

Packages that depend on listen_call