RoadSnappedLocationProvider.LocationListener

公開靜態介面 RoadSnappedLocationProvider.LocationListener

定義在道路路標的位置更新推出時呼叫的方法簽章。所有通知都會在 UI 執行緒上觸發。

公用方法摘要

抽象 void
onLocationChanged(LocationEvent 事件)
在使用者的位置資訊更新時呼叫。
void
onRawLocationUpdate(LocationEvent 事件)
傳送原始位置事件時呼叫。

公用方法

公開 抽象 void onLocationChanged (LocationEvent 事件)

在使用者的位置資訊更新時呼叫。

位置提供者會盡可能頻繁提供這類資訊。位置資訊只會在行車模式中偵測道路,步行或騎單車時不適用。

參數
event 包含駕駛位置的事件

public void onRawLocationUpdate (LocationEvent 事件)

傳送原始位置事件時呼叫。一般而言,如果道路未傳送事件,我們有時會顯示這些事件。

參數
event 包含駕駛位置的事件。