watchPosition
fun Geolocation.watchPosition(options: PositionOptions = unsafeJso()): Flow<GeolocationPosition>(source)
The watchPosition() method of the Geolocation interface is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.