Skip to content

Commit

Permalink
Merge pull request #471 from hiennguyen92/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hiennguyen92 authored Mar 5, 2024
2 parents 9aab413 + 1f5fb49 commit 8cfb263
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.0.2+1
* Fixed linked func `hideCallkitIncoming`

## 2.0.2
* Add func `hideCallkitIncoming` clear the incoming notification/ring (after accept/decline/timeout)
* Add props `isShowFullLockedScreen` on Android
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Our top sponsors are shown below!
```
* Hide notification call for Android
```
hideCallkitIncoming({ id: 'uuid call' })
await FlutterCallkitIncoming.hideCallkitIncoming(this._currentUuid);
```

* Started an outgoing call
Expand Down
5 changes: 5 additions & 0 deletions lib/flutter_callkit_incoming.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ class FlutterCallkitIncoming {
return await _channel.invokeMethod("requestNotificationPermission", data);
}

/// Hide notification call for Android
static Future endCall(String id) async {
await _channel.invokeMethod("hideCallkitIncoming", {'id': id});
}

static CallEvent? _receiveCallEvent(dynamic data) {
Event? event;
Map<String, dynamic> body = {};
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_callkit_incoming
description: Flutter Callkit Incoming to show callkit screen in your Flutter app.
version: 2.0.2
version: 2.0.2+1
homepage: https://github.com/hiennguyen92/flutter_callkit_incoming
repository: https://github.com/hiennguyen92/flutter_callkit_incoming
issue_tracker: https://github.com/hiennguyen92/flutter_callkit_incoming/issues
Expand Down

0 comments on commit 8cfb263

Please sign in to comment.