nc-photos/app/lib/mobile/android/activity.dart

13 lines
419 B
Dart
Raw Normal View History

import 'package:flutter/services.dart';
import 'package:nc_photos/future_extension.dart';
class Activity {
static Future<String?> consumeInitialRoute() =>
_methodChannel.invokeMethod("consumeInitialRoute");
static Future<bool> isNewGMapsRenderer() =>
_methodChannel.invokeMethod<bool>("isNewGMapsRenderer").notNull();
static const _methodChannel = MethodChannel("com.nkming.nc_photos/activity");
}