IGeoPositionWatcher<T> 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可實作以提供存取位置資料及接收位置更新的介面。
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 作為型別參數。
屬性
| 名稱 | Description |
|---|---|
| Position |
取得位置資料。 |
| Status |
取得位置資料的狀態。 |
方法
| 名稱 | Description |
|---|---|
| Start() |
啟動位置資料的取得。 |
| Start(Boolean) |
開始取得位置資料,指定是否要抑制權限提示。 此方法會同步回傳。 |
| Stop() |
停止取得位置資料。 |
| TryStart(Boolean, TimeSpan) |
開始取得位置資料,並指定初始化逾時。 此方法會同步回傳。 |
事件
| 名稱 | Description |
|---|---|
| PositionChanged |
當房產發生變化時 Position 。 |
| StatusChanged |
當房產變更時 Status 發生。 |