Last updated:
0 purchases
listen call
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.