feat: 新增设备绑定、扫码与联系人管理功能
This commit is contained in:
1 parent
06cdc77172
commit
98de1e1132
49 files changed
+5699
-204
No files matched your search
@@ -195,6 +195,21 @@ class LocationController extends Notifier<LocationState> {
|
||||
stop();
|
||||
}
|
||||
|
||||
/// 重新启动连续定位(供地图「定位到本机」按钮手动触发)。
|
||||
///
|
||||
/// 若之前已停止(拿到首个结果后自动停止),可再次启动以获取最新位置;
|
||||
/// 已启动时调用仅重新注册回调、不重复初始化。
|
||||
void restart() {
|
||||
if (_plugin == null) {
|
||||
// 插件尚未初始化(极端时序下),从头走初始化流程。
|
||||
_started = false;
|
||||
_init();
|
||||
return;
|
||||
}
|
||||
_started = true;
|
||||
_plugin?.startLocation();
|
||||
}
|
||||
|
||||
/// 停止连续定位(保留插件实例,可再次 [startLocation])。
|
||||
///
|
||||
/// 本机定位拿到首个有效结果后即停止,符合「有结果且非定位错误就停止定位」的约束。
|
||||
|
||||
Reference in new issue
Block a user