Skip to main content
←API Reference ←com.nianticspatial.nsdk.utils

FlowPollingManager


Declaration​

class FlowPollingManager<T>

Summary​

Manages Flow-based polling for session updates with automatic subscriber tracking and frame deduplication. This class abstracts the common pattern of:

  • Creating a MutableSharedFlow
  • Tracking active subscribers
  • Starting/stopping polling coroutines based on subscriber count
  • Deduplicating updates by frame ID or timestamp

Properties​

NameTypeSummary
flowFlow<T>
Public Flow that automatically manages polling lifecycle.

Functions​

NameTypeSummary
destroyvoid
Cleans up resources. Should be called when the session is destroyed.