VPSARKitLocationSourceDelegate
public protocol VPSARKitLocationSourceDelegate : AnyObject
The delegate of a VPSARKitLocationSource object must adopt the VPSARKitLocationSourceDelegate protocol.
The methods of the protocol allow the delegate to respond to changes in the state of the VPSARKitLocationSource,
to localization events, and to ARKit camera tracking state changes.
-
locationSource(_:Default implementationdidChangeState: ) Called when the state of the
VPSARKitLocationSourcechanges.Default Implementation
Declaration
Swift
func locationSource(_ locationSource: VPSARKitLocationSource, didChangeState state: VPSARKitLocationSource.State) -
locationSource(_:Default implementationdidChangeScanStatus: ) Called when the scan status of the
VPSARKitLocationSourcechanges.Default Implementation
Declaration
Swift
func locationSource( _ locationSource: VPSARKitLocationSource, didChangeScanStatus status: VPSARKitLocationSource.ScanStatus ) -
locationSource(_:Default implementationdidChangeBackgroundScanStatus: ) Called when the background scan status of the
VPSARKitLocationSourcechanges.Default Implementation
Declaration
Swift
func locationSource( _ locationSource: VPSARKitLocationSource, didChangeBackgroundScanStatus status: VPSARKitLocationSource.ScanStatus ) -
locationSource(_:Default implementationdidLocalizeUserAtCoordinate: attitude: backgroundScan: ) Called when the
VPSARKitLocationSourcesuccessfully localizes the user.Default Implementation
Declaration
Swift
func locationSource( _ locationSource: VPSARKitLocationSource, didLocalizeUserAtCoordinate coordinate: Coordinate, attitude: Attitude, backgroundScan: Bool ) -
locationSource(_:Default implementationcameraDidChangeTrackingState: ) Called when the ARKit camera changes its tracking state.
Default Implementation
Declaration
Swift
func locationSource(_ locationSource: VPSARKitLocationSource, cameraDidChangeTrackingState camera: ARCamera) -
locationSource(_:Default implementationdidFailWithError: ) Default Implementation
Declaration
Swift
func locationSource(_ locationSource: VPSARKitLocationSource, didFailWithError error: VPSARKitLocationSourceError)
View on GitHub