共用方式為


getCurrentPosition

使用裝置地理位置功能傳回目前位置。

適用於

模型導向 (行動用戶端) 和畫布應用程式

語法

context.device.getCurrentPosition()

傳回值

類型: Promise<Position>

參見 應許立場

Exceptions

請參閱 Web 服務錯誤碼

裝置
Power Apps 元件架構 API 參考
Power Apps 元件架構概觀