Hello Team,
I need sleeping data in my application.
As per SleepMonitor Api, I don’t see any method which gives me sleep data.
Please help me.
Thanks in Advance.
Hello Team,
I need sleeping data in my application.
As per SleepMonitor Api, I don’t see any method which gives me sleep data.
Please help me.
Thanks in Advance.
I have a same problem
Hi,
You can read the following documentation. This documentation might help you to solve your problem.
https://docs.tizen.org/application/web/guides/sensors/ham/#detecting-sleep
On this page, the following parts show how to collect sleeping data.
To enable the monitor and start collecting data, use the
start()
method of theHumanActivityMonitorManager
interface (in mobile and wearable applications):function onchangedCB(sleepInfo) { console.log('Sleep status: ' + sleepInfo.status); console.log('Timestamp: ' + sleepInfo.timestamp + ' milliseconds'); } tizen.humanactivitymonitor.start('SLEEP_MONITOR', onchangedCB);