class NativeWayspotAnchorImplementation (Niantic.ARDK.AR.WayspotAnchors.NativeWayspotAnchorImplementation)
Overview
class NativeWayspotAnchorImplementation: _ThreadCheckedObject, _IWayspotAnchorImplementation { public: // properties bool IsDestroyed; ArdkEventHandler<LocalizationStateUpdatedArgs> LocalizationStateUpdated; ArdkEventHandler<WayspotAnchorsCreatedArgs> WayspotAnchorsCreated; ArdkEventHandler<WayspotAnchorsResolvedArgs> WayspotAnchorsResolved; ArdkEventHandler<WayspotAnchorStatusUpdatedArgs> WayspotAnchorStatusUpdated; // methods Guid[] CreateWayspotAnchors(params Matrix4x4[] localPoses); void Dispose(); void StartResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors); void StartVPS(IWayspotAnchorsConfiguration wayspotAnchorsConfiguration); void StopResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors); void StopVPS(); };
Detailed Documentation
Properties
bool IsDestroyed
Whether or not the native wayspot anchor controller has been destroyed.
ArdkEventHandler<LocalizationStateUpdatedArgs> LocalizationStateUpdated
Called when the localization state has changed.
ArdkEventHandler<WayspotAnchorsCreatedArgs> WayspotAnchorsCreated
Called when new wayspot anchors have been created.
ArdkEventHandler<WayspotAnchorsResolvedArgs> WayspotAnchorsResolved
Called when wayspot anchors have been resolved.
ArdkEventHandler<WayspotAnchorStatusUpdatedArgs> WayspotAnchorStatusUpdated
Called when the status of wayspot anchors has changed.
Methods
Guid[] CreateWayspotAnchors(params Matrix4x4[] localPoses)
Creates new wayspot anchors.
Parameters:
localPoses |
The local poses (position and rotation only) used to create the wayspot anchors |
Returns:
The IDs of the newly created wayspot anchors
void Dispose()
Disposees of the native wayspot anchor controller.
void StartResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors)
Starts resolving wayspot anchors. Resolving anchors will have their position and rotation updates reported via the _wayspotAnchorsResolved event.
Parameters:
wayspotAnchors |
The wayspot anchors to update |
void StopResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors)
Stops resolving the wayspot anchors.
Parameters:
wayspotAnchors |
The wayspot anchors to stop resolving |