getCurrentPosition method

void getCurrentPosition(
  1. PositionCallback successCallback, [
  2. PositionErrorCallback? errorCallback,
  3. PositionOptions options
])

The getCurrentPosition() method of the Geolocation interface is used to get the current position of the device.

Implementation

external void getCurrentPosition(
  PositionCallback successCallback, [
  PositionErrorCallback? errorCallback,
  PositionOptions options,
]);