mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-10-09 02:54:14 +00:00
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
13 lines
489 B
Dart
13 lines
489 B
Dart
import 'package:flutter/services.dart';
|
|
|
|
class LocationMetadataService {
|
|
static const _channel = MethodChannel('eu.twonly/location_metadata');
|
|
|
|
/// Opens the native permission sheet only after the user enables the switch.
|
|
/// Approximate/reduced access is rejected because this feature promises a
|
|
/// precise capture location.
|
|
static Future<bool> requestPrecisePermission() async {
|
|
return await _channel.invokeMethod<bool>('requestPrecisePermission') ??
|
|
false;
|
|
}
|
|
}
|