You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
|
|
|
|
import 'amap_flutter_method_channel.dart';
|
|
|
|
abstract class AmapFlutterPlatform extends PlatformInterface {
|
|
/// Constructs a AmapFlutterPlatform.
|
|
AmapFlutterPlatform() : super(token: _token);
|
|
|
|
static final Object _token = Object();
|
|
|
|
static AmapFlutterPlatform _instance = MethodChannelAmapFlutter();
|
|
|
|
/// The default instance of [AmapFlutterPlatform] to use.
|
|
///
|
|
/// Defaults to [MethodChannelAmapFlutter].
|
|
static AmapFlutterPlatform get instance => _instance;
|
|
|
|
/// Platform-specific implementations should set this with their own
|
|
/// platform-specific class that extends [AmapFlutterPlatform] when
|
|
/// they register themselves.
|
|
static set instance(AmapFlutterPlatform instance) {
|
|
PlatformInterface.verifyToken(instance, _token);
|
|
_instance = instance;
|
|
}
|
|
|
|
Future<void> setApiKey({String? iosKey, String? androidKey}) {
|
|
throw UnimplementedError('init() has not been implemented.');
|
|
}
|
|
|
|
Future<void> initLocation() {
|
|
throw UnimplementedError('initLocation() has not been implemented.');
|
|
}
|
|
|
|
Future<void> startLocation() {
|
|
throw UnimplementedError('startLocation() has not been implemented.');
|
|
}
|
|
|
|
Stream<dynamic> locationStream() {
|
|
throw UnimplementedError('locationStream() has not been implemented.');
|
|
}
|
|
|
|
Future<void> stopLocation() {
|
|
throw UnimplementedError('stopLocation() has not been implemented.');
|
|
}
|
|
|
|
Future<void> dispose() {
|
|
throw UnimplementedError('dispose() has not been implemented.');
|
|
}
|
|
}
|
|
|