Samsung / cordova-plugin-toast

Cordova plugin that provides TV Specific functionalities.
Apache License 2.0
121 stars 60 forks source link

Build Status

cordova-plugin-toast

Cordova plugin that provides TV Specific functionalities.

About this project

This plugin defines a global toast object, which provides an API for TV specific functionalities that is based on Cordova project.

Although the object provides the global scoped toast object, it is not available until after the deviceready event which is provided by Cordova.

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    console.log(toast);
}

TOAST references

If you want more details, please refer belows.

Project Structure

    ./
     |-cordova-test-runner/ ... TestRunner/TestSuite Cordova application
     |-docs/ .................. Documents which are including API Specification
     |-sample/ ................ Sample applications using TOAST API
     |-src/ ................... Platform dependent modules for the plugin TOAST
     |  |-browser/ ............ Plugin implementation for the platform `browser`
     |  |-sectv-orsay/ ........ Plugin implementation for the platform `sectv-orsay`
     |  |-sectv-tizen/ ........ Plugin implementation for the platform `sectv-tizen`
     |  `-tv-webos/ ........... Plugin implementation for the platform `tv-webos`
     |-tasks/ ................. custom grunt tasks to build the toast.js
     |-www/ ................... Platform independent modules for the plugin TOAST
     |-Gruntfile.js ........... Gruntfile to build the toast.js
     '-plugin.xml ............. Cordova Plugin configuration for TOAST

Associated Projects

Supported platform

Feature Name Browser Legacy Samsung Smart TV Tizen Samsung Smart TV WebOS LG Smart TV
20122013201420152016201420152016
toast.MediaYesYesYesYesYesYesYesYesYes
toast.MediaPluginNoYesYesYesYesYesYesYesYes
toast.drminfoYesYesYesYesYesYesNoNoNo
toast.applicationPartlyYesYesYesYesYesYesYesYes
toast.inputdevicePartlyYesYesYesYesYesYesYesYes
toast.tvaudiocontrolYesYesYesYesYesYesYesYesYes
toast.tvwindowYesYesYesYesYesYesNoNoNo
toast.tvchannelYesYesYesYesYesYesNoNoNo
IMENoYesYesYesYesYesYesYesYes

Prepare to start

Precondition

First, TOAST needs the followings. Please install these.

git clone

Configuration

Compile

Create Project

How to create Toast project

<body>
    ...
    <script type="text/javascript" src="https://github.com/Samsung/cordova-plugin-toast/raw/master/cordova.js"></script>

    <!-- Add toast.js to use toast api -->
    <script type="text/javascript" src="https://github.com/Samsung/cordova-plugin-toast/raw/master/toast.js"></script>
    ...
</body>
```

Prepare and Build

How to prepare

How to build and package

How to Test with TestRunner

Converting Tizen to Toast

Converting Orsay to Toast

API Reference

Sample App

Contribution Guideline

Known Issues

Not yet

Analytics