停用位置信息更新
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
当司机结束轮班后,您可以通过将 locationTrackingEnabled
设置为 NO
来停用车辆的位置信息更新。
Swift
vehicleReporter.locationTrackingEnabled = false
Objective-C
_vehicleReporter.locationTrackingEnabled = NO
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eVehicle location tracking can be disabled by setting \u003ccode\u003elocationTrackingEnabled\u003c/code\u003e to \u003ccode\u003eNO\u003c/code\u003e or \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis action is typically performed at the end of a driver's shift to halt location updates.\u003c/p\u003e\n"]]],[],null,["# Disable location updates\n\nWhen the driver finishes their shift, you can disable location updates for a\nvehicle by setting `locationTrackingEnabled` to `NO`. \n\n### Swift\n\n vehicleReporter.locationTrackingEnabled = false\n\n### Objective-C\n\n _vehicleReporter.locationTrackingEnabled = NO"]]