@scaflo/use-hooks - v0.1.0
Preparing search index...
useGeolocation
Function useGeolocation
useGeolocation
(
options
?:
PositionOptions
,
)
:
{
coords
:
undefined
|
GeolocationCoords
;
error
:
undefined
|
GeolocationPositionError
;
getCurrentPosition
:
(
opts
?:
PositionOptions
)
=>
Promise
<
GeolocationCoords
>
;
isSupported
:
boolean
;
startWatch
:
(
opts
?:
PositionOptions
)
=>
void
;
stopWatch
:
()
=>
void
;
}
Parameters
Optional
options
:
PositionOptions
Returns
{
coords
:
undefined
|
GeolocationCoords
;
error
:
undefined
|
GeolocationPositionError
;
getCurrentPosition
:
(
opts
?:
PositionOptions
)
=>
Promise
<
GeolocationCoords
>
;
isSupported
:
boolean
;
startWatch
:
(
opts
?:
PositionOptions
)
=>
void
;
stopWatch
:
()
=>
void
;
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@scaflo/use-hooks - v0.1.0
Loading...