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.

33 lines
728 B

import 'package:amap_service/amap_service.dart';
import 'package:deep_voice/core/utils/logger.dart';
import 'package:get/get.dart';
//音乐播放管理
class NavigationManager extends GetxService {
static NavigationManager get to => Get.find<NavigationManager>();
// 音乐服务实例
final AmapService _amapervice = AmapService();
/// 初始化
@override
void onInit() {
super.onInit();
Logger.info('导航服务初始化');
}
/// 释放资源
@override
void onClose() {
super.onClose();
}
Stream<AmapServiceEvent> events() {
return _amapervice.events;
}
//导航
Future<void> navigation(String org, String dis) async {
// await _amapervice.navigation(org, dis);
}
}