interface IWayspotAnchor (Niantic.ARDK.AR.WayspotAnchors.IWayspotAnchor)
Overview
interface IWayspotAnchor: IDisposable { // properties Guid ID; Vector3 LastKnownPosition; Quaternion LastKnownRotation; WayspotAnchorPayload Payload; WayspotAnchorStatusCode Status; bool Tracking; ArdkEventHandler<WayspotAnchorResolvedArgs> TrackingStateUpdated; // events event StatusCodeUpdated(); event TransformUpdated(); };
Detailed Documentation
Properties
Guid ID
Gets the ID of the wayspot anchor.
Vector3 LastKnownPosition
Current position of the anchor. Only valid if the anchor has resolved (i.e. the value of Status is Success or Limited).
Quaternion LastKnownRotation
Current rotation of the anchor. Only valid if the anchor has resolved (i.e. the value of Status is Success or Limited).
WayspotAnchorPayload Payload
Gets the payload for the wayspot anchor. Only valid if the anchor is created (i.e. the value of Status is Success or Limited).
bool Tracking
Whether or not the wayspot anchor is currently being tracked.
ArdkEventHandler<WayspotAnchorResolvedArgs> TrackingStateUpdated
Called when the status, position, or rotation of the wayspot anchor has been updated.
Note
This is only surfaced automatically when using the WayspotAnchorService. It needs to be invoked in your application code when using the WayspotAnchorController.