[go: up one dir, main page]

Tizen Web APIs

Using the Tizen Web API modules, you can develop rich Web applications and build great application experiences with well-known Web programming languages: HTML, CSS, and JavaScript. Like every major browser in the market, the Tizen Web API modules support the latest HTML5 capabilities, such as animation, offline, audio, and video. By utilizing the standard HTML5 capabilities, your Web applications are ready to run across various devices and platforms with minimal customization. In addition to the JavaScript-based Tizen Device API, you can also enable advanced device access from your Web applications, such as Bluetooth and NFC.

The Tizen platform supports hybrid applications (1 Web application and 1 or more native applications). A hybrid application package is very useful for Web applications that need background processing or monitoring. With a hybrid application package, you can register the included applications in the official site for Tizen applications and install, update, and uninstall them using a single hybrid package. For more information on developing hybrid Web applications with Tizen devices, see Packaging Hybrid Applications.

Tizen provides a wide range of Web API modules that allow you to take full advantage of various Tizen features.

Note

The feature support differs depending on the application profile (TV, IoT, and other).

The following table lists the features provided by the TV Web Device API Reference.

Table: Device API features provided for TV applications

Feature Purpose Documentation
Base These APIs contain classes and interfaces that provide a set of basic definitions and interfaces that are used in the Tizen Device API.
You can manage common files and ZIP archive files, and define filters and sorting modes for queries. You can also use generic success and error event handlers, in addition to a generic error interface and a simple coordinate interface for defining location information.
Application Framework These APIs contain classes and interfaces that enable you to manage alarm, application, and package features.
You can schedule an application to be run at a specific time, retrieve information about the applications installed or running on the device, and enable package management.
Content These APIs contain classes and interfaces that enable you to manage content and download features.
You can search and manage multimedia content locally, manipulate EXIF data in JPEG files, download files from the Internet, and monitor the download progress and status.
Messaging This API contains classes and interfaces that enable you to manage push messaging.
You can receive push notifications from a push server.
Network This API contains classes and interfaces that enable you to manage IoT connectivity.
You can create a client and server, and manage their resources locally and remotely.
Security This API contains classes and interfaces that enable you to manage secure keys in your application.
You can use security functionalities, such as storing and recalling private data.
System These APIs contain classes and interfaces that enable you to manage system information, time, and Web setting features.
You can access the device system information and use locale-specific calendar features by retrieving date and time information. You can also set Web view properties, such as setting Web view user agents and deleting Web view cookies.
UIX This API contain classes and interfaces that enable you to set voice commands.
You can allow the user to control the Web application through their voice.
Cordova These APIs contain classes and interfaces that enable you use common functionalities in creating Tizen Web applications.
You can manage the device filesystem, individual files, and various events, access device and network information and the device accelerometer, create dialog boxes and system log entries, and play audio files.
TV Controls These APIs contain classes and interfaces that enable you control the TV functionalities, such as audio and settings.
You can modify the volume level, and manage TV settings. You can also access 3D mode information, monitor remote control key events, and control the main and PIP window on the TV screen.
Note

In Tizen Web Device APIs, there are two types of APIs: mandatory and optional.

The mandatory APIs are always available on all Tizen devices. The optional APIs provide functionality that depends on the available device hardware or software capabilities, and they may not be available on all Tizen devices. For example, the Bluetooth and NFC API hardware features are optional, and not supported on all devices.

To determine the availability of optional APIs, use the tizen.systeminfo.getCapability() method of the System Information API (in TV applications).

Note that all mandatory APIs are supported on the Tizen emulators, while the optional APIs may or may not be supported. For more information on support for each API, see TV Web Device API Reference.