class WayspotAnchorService (Niantic.ARDK.AR.WayspotAnchors.WayspotAnchorService)

Overview

class WayspotAnchorService: Niantic.ARDK.AR.WayspotAnchors.WayspotAnchorServiceBase {
public:
    // methods

    virtual override void Dispose();

    WayspotAnchorService(
        IARSession arSession,
        ILocationService locationService,
        IWayspotAnchorsConfiguration wayspotAnchorsConfiguration
    );
};

Inherited Members

public:
    // fields

    ArdkEventHandler<LocalizationStateUpdatedArgs> LocalizationStateUpdated;

    // properties

    LocalizationFailureReason LocalizationFailureReason;
    LocalizationState LocalizationState;

    // methods

    async void CreateWayspotAnchors(
        Action<IWayspotAnchor[]> callback,
        params Matrix4x4[] localPoses
    );

    IWayspotAnchor[] CreateWayspotAnchors(params Matrix4x4[] localPoses);
    async Task<IWayspotAnchor[]> CreateWayspotAnchorsAsync(params Matrix4x4[] localPoses);
    void DestroyWayspotAnchors(params Guid[] ids);
    void DestroyWayspotAnchors(params IWayspotAnchor[] anchors);
    virtual void Dispose();
    IWayspotAnchor[] GetAllWayspotAnchors();
    IWayspotAnchor GetWayspotAnchor(Guid id);
    async void Restart();
    IWayspotAnchor[] RestoreWayspotAnchors(params WayspotAnchorPayload[] wayspotAnchorPayloads);

Detailed Documentation

Methods

virtual override void Dispose()

Disposes of the Wayspot Anchor Service.

WayspotAnchorService(
    IARSession arSession,
    ILocationService locationService,
    IWayspotAnchorsConfiguration wayspotAnchorsConfiguration
)

Creates a new wayspot anchor service.

Parameters:

arSession

The AR Session used to create the wayspot anchor service

locationService

The location service used to create the wayspot anchor service

wayspotAnchorsConfiguration

The configuration of the wayspot anchors