Skip to main content
Version: 3.9

struct ARLocationTrackedEventArgs

(Niantic.Lightship.AR.PersistentAnchors.ARLocationTrackedEventArgs)

Overview

Event arguments for the ARLocationManager.locationTrackingStateChanged event.

struct ARLocationTrackedEventArgs {
// properties

ARLocation ARLocation;
bool Tracking;
ARLocationTrackingStateReason TrackingStateReason;
float TrackingConfidence;

// methods

ARLocationTrackedEventArgs(
ARLocation arARLocation,
bool tracking,
ARLocationTrackingStateReason reason,
float trackingConfidence = 0.0f
);
};

Detailed Documentation

Event arguments for the ARLocationManager.locationTrackingStateChanged event.

Properties

ARLocation

ARLocation ARLocation

The ARLocation being tracked

Tracking

bool Tracking

Whether or not the ARLocation is currently tracked

Methods

ARLocationTrackedEventArgs

ARLocationTrackedEventArgs(
ARLocation arARLocation,
bool tracking,
ARLocationTrackingStateReason reason,
float trackingConfidence = 0.0f
)

Creates the args for ARLocation tracking

    Parameters:

    arARLocation - The ARLocation to track

    tracking - Whether or not the ARLocation is being tracked

    reason - If tracking is false, more information about why

    trackingConfidence - Positive number representing confidence we have in latest tracking update