Questions About requestAnalysis() in Asleep SleepTrackingManager
Hello,
I am integrating the Asleep AI SDK into my app and had a few questions about the requestAnalysis() method in the SleepTrackingManager class. I would appreciate any clarification you could provide, as it will help me use the SDK effectively for my use case.
1. What is the primary use case for requestAnalysis()?
Is it mainly intended for providing real-time feedback during an ongoing session, or is it generally used at the end of a session to retrieve a final analysis? Understanding this will help me determine when and how often I should call this method.
2. Does the SDK automatically trigger analysing(session:) periodically, or is it necessary to call requestAnalysis() manually to receive updated analysis data?
If the SDK handles analysis updates internally and automatically triggers analysing(session:), I’d like to confirm that there’s no need for manual requestAnalysis() calls to receive interim analysis data.
3. Why is requestAnalysis() not used in the sample code?
I noticed that requestAnalysis() is not included in the sample app. Under what specific circumstances would you recommend calling it, if at all?
Best regards,