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;

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);
1
likes
110
pub points
20%
popularity

Publisher

verified publisherautopc.top

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