12 lines
381 B
Dart
12 lines
381 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
abstract final class UmengPrivacyConsent {
|
|
static const _channel = MethodChannel('jinzhi/privacy');
|
|
|
|
static Future<void> submitGranted() async {
|
|
if (kIsWeb || defaultTargetPlatform != TargetPlatform.android) return;
|
|
await _channel.invokeMethod<void>('submitUmengPrivacyGranted');
|
|
}
|
|
}
|