kc_foreground_service 0.0.2 copy "kc_foreground_service: ^0.0.2" to clipboard
kc_foreground_service: ^0.0.2 copied to clipboard

PlatformAndroid

A package support 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

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';

Usage #

In essence, the following line of code will start the foreground service:

await ForegroundService().start();

To stop the service again, use the following line of code:

await ForegroundService().stop();
0
likes
130
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

A package support foreground service

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on kc_foreground_service

Packages that implement kc_foreground_service