}
function StressMonitorDataRange(label, min, max) {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
validator_.validateConstructorCall(this, tizen.StressMonitorDataRange);
var args = validator_.validateArgs(arguments, [
throw new WebAPIException(WebAPIException.NOT_SUPPORTED_ERR);
}
+ if (HumanActivityType.STRESS_MONITOR == args.type) {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
+ }
+
var data = {
type: args.type
};
);
}
+ if (HumanActivityType.STRESS_MONITOR == args.type) {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
+ }
+
var listenerId = 'HumanActivityMonitor_' + args.type;
var optionsAttributes = ['callbackInterval', 'sampleInterval'],
options = args.options || {};
);
}
+ if (HumanActivityType.STRESS_MONITOR == args.type) {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
+ }
+
if (HumanActivityType.PEDOMETER === args.type) {
stopListener(
'HumanActivityMonitor_PEDOMETER',
}
StressMonitorListenerManager.prototype.onListener = function(data) {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
if (stressListener) {
stressListener(data);
}
var stressMonitorListener = new StressMonitorListenerManager();
HumanActivityMonitorManager.prototype.addStressMonitorChangeListener = function() {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
utils_.checkPrivilegeAccess(privilege_.HEALTHINFO);
var args = validator_.validateMethod(arguments, [
{
};
HumanActivityMonitorManager.prototype.removeStressMonitorChangeListener = function() {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
var args = validator_.validateMethod(arguments, [
{
name: 'watchId',
HumanActivitySleepDetectorData.prototype.constructor = HumanActivitySleepMonitorData;
function HumanActivityStressMonitorData(data) {
+ utils_.printDeprecationWarningFor(HumanActivityType.STRESS_MONITOR);
SetReadOnlyProperty(this, 'stressScore', data.stressScore);
}