traceku_platform_interface 3.4.2
traceku_platform_interface: ^3.4.2 copied to clipboard
A common platform interface for the Traceku background geolocation plugin. Used by traceku_android and traceku_ios implementations.
example/example.dart
// ignore_for_file: avoid_print
import 'package:traceku_platform_interface/traceku_platform_interface.dart';
/// Example showing how platform implementations extend [TracekuPlatform].
///
/// This package is not intended for direct use — it provides the abstract
/// interface that platform-specific packages (traceku_android, traceku_ios,
/// traceku_web) implement. See the [traceku](https://pub.dev/packages/traceku)
/// package for the app-facing API.
void main() {
// Access the current platform implementation singleton.
final platform = TracekuPlatform.instance;
print('Platform implementation: ${platform.runtimeType}');
}