-
Notifications
You must be signed in to change notification settings - Fork 60
Legacy API: TVWindow
Hyojin Kim edited this page Mar 21, 2017
·
3 revisions
For converting TVWindow API of Legacy to TOAST API, please refer to the followings.
If you want more information, please refer to toast.tvwindow
-
Before
/* webapis */ webapis.tv.window.setSource({ type: 'TV', number: 1 }, function() {}, function() {}, 0);
/* SEF */ var sef= document.getElementById("sef"); sef.open('Window', '1.0', 'Window'); sef.Execute('SetSource', 0);
-
After
toast.tvwindow.setSource({ type: 'TV', number: 1 }, function() {}, function() {});
-
Before
/* webapis */ var sourceInfo = webapis.tv.window.getSource(0);
/* SEF */ sef.Execute('GetSource', 0);
-
After
toast.tvwindow.getSource(function() {}, function() {});
-
Before
/* webapis */ webapis.tv.window.setRect({ left: 0, top: 0, width: 960, height: 540 }, 0); webapis.tv.window.show(0);
/* SEF */ sef.style.left = '0px'; sef.style.top = '0px'; sef.style.width = '960px'; sef.style.height = '540px'; sef.style.visibility = "visible";
-
After
toast.tvwindow.show([0, 0, 960, 540], function() {}, function() {});
-
Before
/* webapis */ webapis.tv.window.setSource({ type: 'MEDIA', number: 1 }, function() {}, function() {}, 0); webapis.tv.window.hide(0);
/* SEF */ sef.Execute('SetSource', 43); sef.style.visibility = 'hidden';
-
After
toast.tvwindow.hide(function() {}, function() {});
-
Before
Not supported
-
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