Last updated:
0 purchases
kc foreground service
KC Foreground Service #
Latest version 0.0.1 #
Derived from package https://pub.dev/packages/flutter_foreground_service
Setup #
Step 1 #
Add the plugin to your pubspec.yaml file:
dependencies:
flutter:
sdk: flutter
kc_foreground_service: ^LATEST_VERSION_HERE
copied to clipboard
Replace the LATEST_VERSION_HERE the latest version number as stated on this page.
Step 2 #
Import the package into your project
import 'package:kc_foreground_service/kc_foreground_service.dart';
copied to clipboard
Usage #
In essence, the following line of code will start the foreground service:
await ForegroundService().start();
copied to clipboard
To stop the service again, use the following line of code:
await ForegroundService().stop();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.