NSDKSitesSession
Declaration
final class NSDKSitesSessionSummary
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
| Name | Type | Summary |
|---|---|---|
| requestAssetInfo | AssetResult | Requests asset info and waits for the result. |
| requestAssetsForSite | AssetResult | Requests assets for a site and waits for the result. |
| requestOrganizationInfo | OrganizationResult | Requests organization info and waits for the result. |
| requestOrganizationsForUser | OrganizationResult | 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. |
| requestScanInfo | ScanResult | Requests one scan's information and waits for the result. |
| requestScansForSite | ScanResult | 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 playbackopens. |
| requestSelfOrganizationInfo | OrganizationResult | Requests organizations for the current authenticated session and waits for the result. |
| requestSelfUserInfo | UserResult | 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. |
| requestSiteAssetsByLocation | SiteAssetsResult | Requests sites and their assets near a GPS coordinate and waits for the result. Results are ordered by distance from the query coordinate. |
| requestSiteInfo | SiteResult | Requests site info and waits for the result. |
| requestSitesForOrganization | SiteResult | Requests sites for an organization and waits for the result. |
| requestUserInfo | UserResult | Requests user info and waits for the result. |
Relationships
conforms to: Swift.Sendable
conforms to: Swift.SendableMetatype