-
Notifications
You must be signed in to change notification settings - Fork 60
Legacy API: TVInfo
Hyojin Kim edited this page Mar 21, 2017
·
8 revisions
For converting TVInfo API of Legacy to TOAST API, please refer to the followings.
If you want more information, please refer to toast.drminfo
-
Before
/* SEF */ var result = sef.Execute('GetESN', 'YourServiceName');
/* webapis */ var result = webapis.tv.info.getESN('YourServiceName');
-
After
toast.drminfo.getEsn('YourServiceName', function(value) { // YourComponentName : Name of component what you want to get Esn data. // value : Esn data of given component name console.log('Success: ' + value); }, function(err) { console.log('Error: ' + err.message); });
-
Before
/* SEF */ var result = sef.Execute('GetSDI_ID');
/* webapis */ /* Not supported */
-
After
toast.drminfo.getSdi(function(value) { // value : SDI (Samsung Device Identifier) console.log('Success: ' + value); }, function(err) { console.log('Error: ' + err.message); });
For converting tv.info API of Legacy platform to TOAST API, please refer to the followings. Please note that device plugin is based on cordova spec. If you want get more details for usage, refer cordova-plugin-device
-
Before
var model = webapis.tv.info.getModel();
-
After
var model = device.model;
-
Before
var version = webapis.tv.info.getFirmware();
-
After
var version = device.version;
-
Before
var duid = webapis.tv.info.getDeviceID();
-
After
var duid = device.uuid;
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