class UnityLocationService (Niantic.ARDK.LocationService.UnityLocationService)

Overview

An object that manages location updates from the device. More…

class UnityLocationService: Niantic.ARDK.LocationService.ILocationService {
public:
    // events

    event CompassUpdated();
    event LocationUpdated();
    event StatusUpdated();

    // methods

    void StartSession(
        float desiredAccuracyInMeters = _DefaultAccuracyMeters,
        float updateDistanceInMeters = _DefaultDistanceMeters,
        float updateInterval = _BroadcastInterval
    );

    void StopSession();
};

Inherited Members

public:
    // events

    event CompassUpdated();
    event LocationUpdated();
    event StatusUpdated();

Detailed Documentation

An object that manages location updates from the device.

Note

In order to use LocationServices on iOS 10+, the “Location Usage Description” box in PlayerPrefs must be filled out.

Note

This is currently not supported with Remote Connection.