-
Notifications
You must be signed in to change notification settings - Fork 60
Tizen API: ProductInfo
zuzu_yun edited this page Mar 21, 2017
·
10 revisions
For converting ProductInfo API of tizen 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
Please add following privilege in the config.xml
<tizen:privilege name="http://developer.samsung.com/privilege/productinfo"/>
-
Before
var model = webapis.productinfo.getModelCode();
-
After
var model = device.model;
-
Before
var version = webapis.productinfo.getFirmware();
-
After
var version = device.version;
-
Before
var duid = webapis.productinfo.getDuid();
-
After
var duid = device.uuid;
Please note that globalization plugin is based on cordova spec. If you want get more details for usage, refer cordova-plugin-globalization
-
Before
var countryCode = webapis.productinfo.getDuid();
-
After
navigator.globalization.getLocaleName(function(value) { // value : countryCode console.log('Success: ' + value); }, 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