Get the name of current Email alert and incoming call ringtone

This code shows how to get the name of current email alert tone and incoming call ringtone in Tizen Web app.
//config.xml
<tizen:privilege name="http://tizen.org/privilege/setting"/>

//main.js
function onGet(value) {
   console.log('Current setting option value is: ' + value);
}
try {
   // use NOTIFICATION_EMAIL for email tone
   tizen.systemsetting.getProperty('INCOMING_CALL', onGet);
} catch (error) {
   console.log('Error: ' + error);
}

Responses

0 Replies