You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -45,8 +51,8 @@ useGeolocation * - _first element_: is the location object with two properties:
45
51
options to use geolocation.
46
52
> -__opts.locationOptions?__: _PositionOptions_
47
53
An optional object which provides options for retrieval of the position data.
48
-
> -__opts.observe?__: _boolean_
49
-
if true returns current position and observes position change, otherwise returns only position in that time.
54
+
> -__opts.mode?__: _boolean_
55
+
it establishes how to obtain the geographic location:
50
56
> -__opts.onError?__: _GeolocationPositionError_
51
57
callback that will be executed if there will be errors.
52
58
>
@@ -59,6 +65,6 @@ callback that will be executed if there will be errors.
59
65
- _()=>void_
60
66
> Array with:
61
67
> -_first element_: is the location object with two properties: __isSupported__ and __position__.
62
-
> -_second element_: function to observe location changes and it receives one param __successCallback__ and two optional params __errorCallback__ and __options__.
63
-
> -_third element_: function to cancel previous observing location changes.
68
+
> -_second element_: function to obtain manually current location.
69
+
> -_third element_: function to obtain location on every changes.
* **`useShare`**: Hook to use [Web Share Api](https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_API).
5
+
* @returns {{isSupported: boolean, share: (data?: ShareData) => Promise<void>}} object - __isSupported__ to known if share API is supported and __share__ function to use Web share API.
0 commit comments