Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Sites

SitesClientManager

↳ extends UnityEngine.MonoBehaviour

Declaration​

public class SitesClientManager : MonoBehaviour

Summary​

A MonoBehaviour component that provides access to the Sites API. Use this to query organizational hierarchy data including users, organizations, sites, and assets.

Remarks​

The SitesClientManager handles the lifecycle of the underlying SitesClient automatically. It creates the client on Awake and disposes it on OnDestroy.


Properties​

NameTypeSummary
readonly ClientSitesClient
The underlying SitesClient instance.
RequestTimeoutSecondsint
The timeout for API requests in seconds.

Methods​

NameTypeSummary
GetAssetInfoAsyncTask<AssetResult>
Gets asset information by asset ID.
GetAssetsForSiteAsyncTask<AssetResult>
Gets all assets for a site.
GetOrganizationInfoAsyncTask<OrganizationResult>
Gets organization information by organization ID.
GetOrganizationsForUserAsyncTask<OrganizationResult>
Gets all organizations for a user.
Consider using GetSelfOrganizationInfoAsync instead.
GetSelfOrganizationInfoAsyncTask<OrganizationResult>
Gets organizations for the current authenticated session.
GetSelfUserInfoAsyncTask<UserResult>
Gets information for the currently authenticated user.
To fetch organizations, consider using GetSelfOrganizationInfoAsync instead.
GetSiteAssetsByLocationAsyncTask<SiteAssetsResult>
Gets sites and their assets near a GPS coordinate.
GetSiteInfoAsyncTask<SiteResult>
Gets site information by site ID.
GetSitesForOrganizationAsyncTask<SiteResult>
Gets all sites for an organization.
GetUserInfoAsyncTask<UserResult>
Gets user information by user ID.