DingDingApiGetLocation 方法 |
获取当前地理位置信息(单次定位)
命名空间:
Smobiler.Plugins
程序集:
Smobiler.Plugins (在 Smobiler.Plugins.dll 中) 版本:6.0.651.17422+acac930a389332bc36ed645b22d5419d24641df7
语法public void GetLocation(
float targetAccuracy = 20f,
DingTalkCoordinate coordinate = DingTalkCoordinate.Amap,
bool withReGeocode = false,
bool useCache = true,
ComponentOnResultHandler handler = null
)
Public Sub GetLocation (
Optional targetAccuracy As Single = 20F,
Optional coordinate As DingTalkCoordinate = DingTalkCoordinate.Amap,
Optional withReGeocode As Boolean = false,
Optional useCache As Boolean = true,
Optional handler As ComponentOnResultHandler = Nothing
)
参数
- targetAccuracy (Optional)
- 类型:SystemSingle
期望定位精度半径,默认为20 - coordinate (Optional)
- 类型:Smobiler.PluginsDingTalkCoordinate
坐标类型,默认获取高德坐标 - withReGeocode (Optional)
- 类型:SystemBoolean
是否需要带有逆地理编码信息,默认为false - useCache (Optional)
- 类型:SystemBoolean
是否缓存地理位置信息 默认是true,如果需要频繁获取地理位置,请设置false - handler (Optional)
- 类型:Smobiler.Core.ControlsComponentOnResultHandler
结果回调
参见