0 purchases
flutter tencent location
flutter_tencent_location #
###腾讯地图定位插件
1.初始化定位插件对象
var locationPlugin = FlutterTencentLocation();
2.调用隐私方法
locationPlugin.setUserAgreePrivacy();
3.初始化地图
locationPlugin.init(key);
4.设置监听
locationPlugin.getLocationController().listener.add((location) {});
copied to clipboard
5.开始定位
locationPlugin.getLocation(连续定位间隔时间,单位毫秒);
6.停止定位
locationPlugin.stopLocation();
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.