Function setUserLastKnownLocation

  • Reports the user last known location.

    Parameters

    • latitude: number

      Latitude of user last known location. Must be between -90 and 90 inclusive.

    • longitude: number

      Longitude of user last known location. Must be between -180 and 180 inclusive.

    • Optional accuracy: number

      Optional - Accuracy of user last known location. Must be >=0.

    • Optional altitude: number

      Optional - Altitude of user last known location.

    • Optional altitudeAccuracy: number

      Optional - Accuracy of altitude of user last known location. Must be >=0.

    Returns Promise<undefined | boolean>

    Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.