-
Notifications
You must be signed in to change notification settings - Fork 60
Prepare to convert for Tizen
Describes how to convert applications from Tizen app to TOAST app.
You can get Toast app by platform as the following.
-
You should delete
config.xml
in your tizen project. -
For making the
toast.js
cordova.js
, Please refer the Prepare to start -
For package the app, Please refer the Prepare and Build
-
If you want to use preexisting code to jumpstart your project, you must create your tizen project to template before you create cordova application for using this option,
--template
The reference url : Cordova app templates / Toast sample app / Toast issue #19.
# Create TOASTApp cordova application using your tizen project
cordova create MyTOASTApp --template=../../MyTizenApp
cd MyTOASTApp
npm install ../grunt-cordova-sectv
cp -rf ../grunt-cordova-sectv/sample/* ./
npm install
cordova platform add browser
cordova plugin add ../cordova-plugin-toast
# Run on browser platform
cordova build browser
cordova emulate browser
# Prepare for sectv-orsay platform
grunt sectv-prepare:sectv-orsay
# Prepare for sectv-tizen platform
grunt sectv-prepare:sectv-tizen
First, Include toast.js
cordova.js
.
-
Include
toast.js
right after the includingcordova.js
in index.html.<script src="cordova.js"></script> <script src="toast.js"></script>
-
webapi.js
will be added by Cordova in index.html. So remove the below code.<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
-
The toast object is not available until after the
deviceready
event which is provided by Cordova.document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { console.log("start the app"); }
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