Skip to main content
←API Reference ←NSDK

NSDKSitesSession


Declaration​

final class NSDKSitesSession

Summary​

Looks up the user's organizations, their sites, and the assets of a site. Holds only immutable handles into the native layer, so its methods may be called from any thread or task.


Methods​

NameTypeSummary
requestAssetInfoAssetResult
Requests asset info and waits for the result.
requestAssetsForSiteAssetResult
Requests assets for a site and waits for the result.
requestOrganizationInfoOrganizationResult
Requests organization info and waits for the result.
requestOrganizationsForUserOrganizationResult
Requests organizations for a user and waits for the result.
This is an async wrapper that combines request initiation and polling.
It automatically handles polling until the request completes or times out.
requestScanInfoScanResult
Requests one scan's information and waits for the result.
requestScansForSiteScanResult
Requests every scan of a site, of all types and statuses, and waits for the result.
Filter on ScanInfo/scanType for ScanType/validation to find scans that playback
opens.
requestSelfOrganizationInfoOrganizationResult
Requests organizations for the current authenticated session and waits for the result.
requestSelfUserInfoUserResult
Requests self user info and waits for the result.
Uses the user ID from the authenticated session's metadata.
To fetch organizations, consider using
requestSelfOrganizationInfo(pollingInterval:timeout:) instead.
requestSiteAssetsByLocationSiteAssetsResult
Requests sites and their assets near a GPS coordinate and waits for the result.
Results are ordered by distance from the query coordinate.
requestSiteInfoSiteResult
Requests site info and waits for the result.
requestSitesForOrganizationSiteResult
Requests sites for an organization and waits for the result.
requestUserInfoUserResult
Requests user info and waits for the result.

Relationships​

conforms to: Swift.Sendable
conforms to: Swift.SendableMetatype