IGeoPositionWatcher<T> 介面

定義

可加以實作供存取位置資料及接收位置更新之用的介面。

generic <typename T>
public interface class IGeoPositionWatcher
public interface IGeoPositionWatcher<T>
type IGeoPositionWatcher<'T> = interface
Public Interface IGeoPositionWatcher(Of T)

類型參數

T

包含位置資料之物件的型別。

衍生

備註

類別會 GeoCoordinateWatcher 實作 IGeoPositionWatcher<T>,使用 GeoCoordinate 作為類型參數。

屬性

Position

取得位置資料。

Status

取得位置資料的狀態。

方法

Start()

起始取得位置資料的作業。

Start(Boolean)

開始取得位置資料,並指定是否隱藏要求使用權限的提示。 這個方法會以同步方式傳回。

Stop()

停止取得位置資料。

TryStart(Boolean, TimeSpan)

開始取得位置資料,並指定初始化逾時。 這個方法會以同步方式傳回。

事件

PositionChanged

發生於 Position 屬性變更時。

StatusChanged

發生於 Status 屬性變更時。

適用於

另請參閱