VPSARKitLocationSource

public final class VPSARKitLocationSource : RxObject, LocationSource, ARSessionProviding, ARSessionDelegate
extension VPSARKitLocationSource: VPSControllerDelegate
extension VPSARKitLocationSource: GeoPoseEstimatorDelegate
  • Declaration

    Swift

    public static var isAvailable: Bool { get }
  • Declaration

    Swift

    public let supportsHeading: Bool
  • Declaration

    Swift

    public let session: ARSession
  • Declaration

    Swift

    public weak var delegate: LocationSourceDelegate?
  • Declaration

    Swift

    public weak var vpsDelegate: VPSARKitLocationSourceDelegate? { get set }
  • Declaration

    Swift

    public private(set) var scanStatus: ScanStatus { get set }
  • Declaration

    Swift

    public private(set) var state: State { get set }
  • Declaration

    Swift

    public init(serviceURL: String)
  • Declaration

    Swift

    public func start()
  • Declaration

    Swift

    public func stop()
  • Declaration

    Swift

    public func startScan()
  • Declaration

    Swift

    public func stopScan()
  • Declaration

    Swift

    public func checkVPSAvailability(at coordinate2D: CLLocationCoordinate2D) -> Single<Bool>
  • Checks if the provided coordinate is inside the VPS-covered area.

    Declaration

    Swift

    public func isVPSAvailable(at coordinate: Coordinate) -> Single<Bool>

    Parameters

    coordinate

    The coordinate to check.

    Return Value

    true if the provided coordinate is inside the VPS-covered area, false otherwise.

  • Calculates the distance to the nearest point of VPS coverage from the provided coordinate.

    Declaration

    Swift

    public func distanceToVPSCoverage(from coordinate: Coordinate) -> Single<CLLocationDistance>

    Parameters

    coordinate

    The coordinate from which to calculate the distance.

    Return Value

    The distance in meters if successfully calculated, or an error otherwise. The distance will be 0 if the provided coordinate is inside VPS-covered area.

ARSessionDelegate