Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# flutter-incall-manager
# flutter_incall_manager

## Port from [react-native-incall-manager](https://github.com/zxcpoiu/react-native-incall-manager)

* Handling media-routes/sensors/events during a audio/video chat on Flutter

add to pubspec:
```
flutter_incall: ^1.0.0
```
import

```
import 'package:flutter_incall/flutter_incall.dart';

```

## API:

Expand Down
4 changes: 2 additions & 2 deletions lib/flutter_incall_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class IncallManager {
Future<void> start(
{bool auto = true,
MediaType media = MediaType.AUDIO,
String ringback}) async {
String? ringback}) async {
await _channel.invokeMethod('start', <String, dynamic>{
'media': media == MediaType.AUDIO ? 'audio' : 'video',
'auto': auto,
Expand All @@ -31,7 +31,7 @@ class IncallManager {
}

/// Stop InCallManager
Future<void> stop({String busytone}) async {
Future<void> stop({String? busytone}) async {
await _channel
.invokeMethod('stop', <String, dynamic>{'busytone': busytone});
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ flutter:
pluginClass: FlutterIncallManagerPlugin

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"