INNER CODE UNIT · Dart
_onLocationError
transistorsoft/flutter_background_geolocation · lib/models/background_geolocation.dart:1351
static void _onLocationError(LocationError error) {
print(
'[BackgroundGeolocation onLocation] ‼️ Unhandled location error: $error.\nYou should provide a failure callback as 2nd argument to BackgroundGeolocation.onLocation.\nEg: BackgroundGeolocation.onLocation(_onLocation, (LocationError error) {\n\t// Handle LocationError here.\n\tprint("[onLocation] ERROR: \$error");\n});');
}
/// Subscribe to changes in motion activity.
///
/// Your `callback` will be executed each time the activity-recognition system receives an event (`still, on_foot, in_vehicle, on_bicycle, running`).
///
/// ## Example
///
/// ```dart
/// BackgroundGeolocation.onActivityChange((ActivityChangeEvent event) {
/// print('[onActivityChange] ${event}');
/// });
/// ```
///
static Subscription onActivityChange(Function(ActivityChangeEvent) callback) {