当司机结束轮班时,您可以通过调用 DeliveryVehicleReporter.disableLocationTracking()
来停止位置信息更新。
停用位置信息更新
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003e\u003ccode\u003eDeliveryVehicleReporter.disableLocationTracking()\u003c/code\u003e is used to stop sharing the driver's location.\u003c/p\u003e\n"],["\u003cp\u003eLocation updates are automatically stopped when a driver's shift ends.\u003c/p\u003e\n"]]],[],null,["# Disable location updates\n\nWhen the driver finishes their shift, you can stop location updates by calling\n`DeliveryVehicleReporter.disableLocationTracking()`."]]