Tizen API: TVWindow - Samsung/cordova-plugin-toast GitHub Wiki
For converting TVWindow API of tizen to TOAST API, please refer to the followings.
If you want more information, please refer to toast.tvwindow
setSource
-
Before
tizen.systeminfo.getPropertyValue('VIDEOSOURCE', function(videoSource) { connectedVideoSources = videoSource.connected; for(var i = 0; i < connectedVideoSources.length; i++) { if (connectedVideoSources[i].type === 'TV') { tizen.tvwindow.setSource(connectedVideoSources[i], function() {}, function() {}, 'MAIN'); break; } } }, function() {});
-
After
toast.tvwindow.setSource({ type: 'TV', number: 1 }, function() {}, function() {});
getSource
-
Before
var source = tizen.tvwindow.getSource('MAIN');
-
After
toast.tvwindow.getSource(function() {}, function() {});
show
-
Before
tizen.tvwindow.show(function() {}, function() {}, ['0px', '0px', '960px', '540px'], 'MAIN');
-
After
toast.tvwindow.show([0, 0, 960, 540], function() {}, function() {});
hide
-
Before
tizen.tvwindow.hide(function() {}, function() {}, 'MAIN');
-
After
toast.tvwindow.hide(function() {}, function() {});
getRect
-
Before
tizen.tvwindow.getRect(function() {}, function() {}, 'px','MAIN');
-
After
toast.tvwindow.getRect(function() {}, function() {});