lifecycle_guard_android 0.0.1 copy "lifecycle_guard_android: ^0.0.1" to clipboard
lifecycle_guard_android: ^0.0.1 copied to clipboard

Android implementation of lifecycle_guard for mission-critical background execution.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:lifecycle_guard/lifecycle_guard.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Lifecycle Guard Android')),
        body: Center(
          child: ElevatedButton(
            onPressed: () => LifecycleGuard.runSecureTask(id: 'android_test'),
            child: const Text('Test Background Task'),
          ),
        ),
      ),
    );
  }
}
6
likes
0
points
178
downloads

Publisher

unverified uploader

Weekly Downloads

Android implementation of lifecycle_guard for mission-critical background execution.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, lifecycle_guard_platform_interface

More

Packages that depend on lifecycle_guard_android

Packages that implement lifecycle_guard_android