开发者

Referencing the geolocation prompt

开发者 https://www.devze.com 2023-03-23 07:20 出处:网络
I have a scenario where I need to start a process only after a user clicks to \'Share Location\' in the automatic prompt displayed.

I have a scenario where I need to start a process only after a user clicks to 'Share Location' in the automatic prompt displayed.

Is there anyway I can reference the prompt or detect when a user has clicked to 'share location' or other possible way t开发者_如何学Pythono achieve this?


Why don't you simply pass in a successCallback and an errorCallback. If one of those is called, then you know that the user has authorized (or declined) the access.

0

精彩评论

暂无评论...
验证码 换一张
取 消