Package com.polar.sdk.api
        Interface PolarSleepApi
- 
                    
                    - All Implemented Interfaces:
 
 public interface PolarSleepApiPolar sleep API. Requires features FEATURE_POLAR_SLEEP_DATA, FEATURE_POLAR_FILE_TRANSFER 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier and Type Method Description abstract Single<Boolean>getSleepRecordingState(String identifier)Get sleep recording state abstract Flowable<BooleanArray>observeSleepRecordingState(String identifier)Observe sleep recording state abstract CompletablestopSleepRecording(String identifier)Stop sleep recording abstract Single<List<PolarSleepData>>getSleep(String identifier, LocalDate fromDate, LocalDate toDate)Get sleep stages and duration for a given period. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        getSleepRecordingStateabstract Single<Boolean> getSleepRecordingState(String identifier) Get sleep recording state - Parameters:
- identifier- The Polar device ID or BT address
- Returns:
- A Single boolean value indicating if sleep recording is ongoing 
 
 - 
                                        observeSleepRecordingStateabstract Flowable<BooleanArray> observeSleepRecordingState(String identifier) Observe sleep recording state - Parameters:
- identifier- The Polar device ID or BT address
- Returns:
- Flowable of boolean values indicating if sleep recording is ongoing 
 
 - 
                                        stopSleepRecordingabstract Completable stopSleepRecording(String identifier) Stop sleep recording - Parameters:
- identifier- The Polar device ID or BT address
- Returns:
- Completable success when sleep recording stop action has been succesfully sent to device 
 
 - 
                                        getSleepabstract Single<List<PolarSleepData>> getSleep(String identifier, LocalDate fromDate, LocalDate toDate) Get sleep stages and duration for a given period. - Parameters:
- identifier- The Polar device ID or BT address.
- fromDate- The starting date of the period to retrieve sleep data from.
- toDate- The ending date of the period to retrieve sleep data from.
- Returns:
- A Single emitting a list of PolarSleepData representing the sleep data for the specified period. 
 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-