class MockWayspotAnchorImplementation (Niantic.ARDK.AR.WayspotAnchors.MockWayspotAnchorImplementation)
Overview
class MockWayspotAnchorImplementation: _IWayspotAnchorImplementation { public: // events event LocalizationStateUpdated(); event WayspotAnchorsCreated(); event WayspotAnchorsResolved(); event WayspotAnchorStatusUpdated(); // methods Guid[] CreateWayspotAnchors(params Matrix4x4[] localPoses); void Dispose(); async void StartResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors); async void StartVPS(IWayspotAnchorsConfiguration wayspotAnchorsConfiguration); async void StopResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors); async void StopVPS(); };
Detailed Documentation
Events
event LocalizationStateUpdated()
Called when the localization state has changed.
event WayspotAnchorsCreated()
Called when new wayspot anchors have been created.
event WayspotAnchorsResolved()
Called when wayspot anchors have updated their position/rotation.
event WayspotAnchorStatusUpdated()
Called when the status of managed poses has changed.
Methods
Guid[] CreateWayspotAnchors(params Matrix4x4[] localPoses)
Creates new wayspot anchors with position and rotation.
Parameters:
localPoses |
The position and rotation of the new wayspot anchors to create |
Returns:
The IDs of the newly created wayspot anchors
void Dispose()
Disposes the Mock Wayspot Anchor Controller.
async void StartResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors)
Starts resolving the wayspot anchors. Anchors that are being resolved will report changes in position and rotation via the WayspotAnchorsResolved event.
Parameters:
wayspotAnchors |
The wayspot anchors to start resolving |
async void StartVPS(IWayspotAnchorsConfiguration wayspotAnchorsConfiguration)
Starts VPS.
Parameters:
localizationConfiguration |
The configuration to start VPS with |
async void StopResolvingWayspotAnchors(params IWayspotAnchor[] wayspotAnchors)
Stops resolving the wayspot anchors param wayspotAnchors Wayspot anchors to stop resolving.
async void StopVPS()
Stops VPS.