getCurrentPosition
Returns the current location using the device geolocation capability.
Available for
Model-driven (mobile client) and canvas apps
Syntax
context.device.getCurrentPosition()
Return Value
Type: Promise<Position>
Exceptions
Related articles
Device
Power Apps component framework API reference
Power Apps component framework overview
意見反映
https://aka.ms/ContentUserFeedback。
即將推出:我們會在 2024 年淘汰 GitHub 問題,並以全新的意見反應系統取代並作為內容意見反應的渠道。 如需更多資訊,請參閱:提交及檢視以下的意見反映: