-
Notifications
You must be signed in to change notification settings - Fork 62
Tizen API: TVInputDevice
zuzu_yun edited this page Mar 21, 2017
·
12 revisions
For converting TVInputDevice API of tizen to TOAST API, please refer to the followings.
If you want more information, please refer to toast.inputdevice
-
Before
tizen.tvinputdevice.registerKey(keyName);
-
After
toast.inputdevice.registerKey(keyName,function() { console.log('Success'); }, function(err) { console.log('Error: ' + err.message); });
-
Before
tizen.tvinputdevice.unregisterKey(keyName);
-
After
toast.inputdevice.unregisterKey(keyName, function() { console.log('Success'); }, function(err) { console.log('Error: ' + err.message); });
-
Before
var supportedKeys = tizen.tvinputdevice.getSupportedKeys();
-
After
var i; toast.inputdevice.getSupportedKeys(function (supportedKeys) { console.log('Success'); for(i = 0; i < supportedKeys.length; i++) { console.log(supportedKeys[i].name + ' ' + supportedKeys[i].code); } }, function(err){ console.log('Error : ' + err.message); });
-
Before
var key = tizen.tvinputdevice.getKey('ColorF0Red');
-
After
toast.inputdevice.getKey('ColorF0Red', function (key) { console.log('RED button code: ' + key.code); }, function(err){ console.log('Error : ' + err.message); });
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