lifecycle_guard_platform_interface 0.0.1
lifecycle_guard_platform_interface: ^0.0.1 copied to clipboard
Platform interface for lifecycle_guard - defines the contract for background execution.
lifecycle_guard_platform_interface #
The platform interface package for lifecycle_guard.
This package defines the abstract LifecycleGuardPlatform class that all platform-specific implementations must extend. This enables the federated plugin pattern used by the Flutter team.
Usage #
This package is not intended to be imported directly by end users.
Import package:lifecycle_guard/lifecycle_guard.dart instead.
If you're building a platform implementation, implement LifecycleGuardPlatform:
class MyPlatformLifecycleGuard extends LifecycleGuardPlatform {
@override
Future<void> startBackgroundSync(String taskId, Map<String, dynamic> data) async {
// Platform-specific implementation
}
}