Skip to main content

useGeoLocationListener

Callable

  • useGeoLocationListener(): (value: { silent?: boolean; timeout?: number }, callback: (result: GeoLocation) => void) => () => void

  • Returns (value: { silent?: boolean; timeout?: number }, callback: (result: GeoLocation) => void) => () => void

      • (value: { silent?: boolean; timeout?: number }, callback: (result: GeoLocation) => void): () => void
      • Parameters

        • value: { silent?: boolean; timeout?: number }
          • optionalsilent: boolean
          • optionaltimeout: number
        • callback: (result: GeoLocation) => void

          Returns () => void

            • (): void
            • Returns void