-
Notifications
You must be signed in to change notification settings - Fork 60
Tizen API: TVWindow
zuzu_yun edited this page Mar 21, 2017
·
4 revisions
For converting TVWindow API of tizen to TOAST API, please refer to the followings.
If you want more information, please refer to toast.tvwindow
-
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() {});
-
Before
var source = tizen.tvwindow.getSource('MAIN');
-
After
toast.tvwindow.getSource(function() {}, function() {});
-
Before
tizen.tvwindow.show(function() {}, function() {}, ['0px', '0px', '960px', '540px'], 'MAIN');
-
After
toast.tvwindow.show([0, 0, 960, 540], function() {}, function() {});
-
Before
tizen.tvwindow.hide(function() {}, function() {}, 'MAIN');
-
After
toast.tvwindow.hide(function() {}, function() {});
-
Before
tizen.tvwindow.getRect(function() {}, function() {}, 'px','MAIN');
-
After
toast.tvwindow.getRect(function() {}, function() {});
uuuu
Getting Started
Converting Tizen to Toast
- Prepare to convert
- Tizen API: AVPlay
- Tizen API: DrmInfo(Deprecated)
- Tizen API: Application
- Tizen API: TVInputDevice
- Tizen API: TVAudioControl
- Tizen API: TVWindow
- Tizen API: TVChannel
- Tizen API: IME
- Tizen API: ProductInfo
- Tizen API: Network
- How to detect platform
Converting Legacy to Toast
- Prepare to convert
- Legacy API: AVPlay
- Legacy API: TVInfo
- Legacy API: Common
- Legacy API: InputDevice
- Legacy API: AudioControl
- Legacy API: TVWindow
- Legacy API: TVChannel
- Legacy API: IME
- How to detect platform
API Reference
- supported cordova plugin
- toast.Media
- toast.MediaPlugin
- toast.drminfo(Deprecated)
- toast.application
- toast.inputdevice
- toast.tvaudiocontrol
- toast.tvwindow
- toast.tvchannel
- toast.billing
Supported platforms
Sample App
Contribution
Frequently Asked Questions