Referencing the geolocation prompt
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.
精彩评论