From 13663ee9bcf2bcced123f5fdf73cce5f03f95bde Mon Sep 17 00:00:00 2001 From: Marcin Wasowski Date: Thu, 18 Dec 2014 11:58:32 +0100 Subject: [PATCH] [TV Audio] Add missing javascript doc, fix minor lint issues Change-Id: Id57f972ec9ff8a7cf18650b1f4f4db9714aa5eb9 Signed-off-by: Marcin Wasowski --- src/tvaudio/tvaudio_api.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/tvaudio/tvaudio_api.js b/src/tvaudio/tvaudio_api.js index 85887234..5e226ab9 100644 --- a/src/tvaudio/tvaudio_api.js +++ b/src/tvaudio/tvaudio_api.js @@ -19,7 +19,8 @@ var VOLUME_CHANGE_LISTENER = 'VolumeChangeCallback'; /** - * This class provides access to the API functionalities through the tizen.tvaudiocontrol interface. + * This class provides access to the API functionalities through + * the tizen.tvaudiocontrol interface. * @constructor */ function AudioControlManager() { @@ -52,6 +53,7 @@ AudioControlManager.prototype.setMute = function(mute) { /** * Gets the mute state. + * @return {boolean} 'true' if sound is muted else 'false' */ AudioControlManager.prototype.isMute = function() { var ret = native.callSync('AudioControlManager_isMute'); @@ -128,8 +130,11 @@ AudioControlManager.prototype.getVolume = function() { /** - * Registers a volume change callback for getting notified when TV volume has been changed. - * @param {!function} listener The method to invoke when the volume has been changed. + * Registers a volume change callback for getting notified + * when TV volume has been changed. + * + * @param {!function} listener The method to invoke + * when the volume has been changed. */ AudioControlManager.prototype.setVolumeChangeListener = function(listener) { var args = validator.validateArgs(arguments, [ @@ -179,7 +184,7 @@ AudioControlManager.prototype.getOutputMode = function() { * Plays the sound of a specific beep. */ AudioControlManager.prototype.playSound = function() { - return undefined; + return; }; -- 2.34.1