Tizen TypeScript API References
The Tizen TypeScript API supports extending both the Samsung product API and the Tizen Web Device API to TypeScript language.
|Tizen Web Device API
|Samsung Product API
Table 1. Npm Packages of Each Tizen API
|A cli tool for setting up Tizen web projects with
language, bundler, editors' extension and WITs
|A CommonJS API of the Tizen Web Device API
|A TypeScript API of
|A CommonJS API of the Samsung Product API
|A TypeScript API of
Table 2. TypeScript Package List
Setting up Project
We have released the create-tizen-app package, which is a wizard tool for helping to configure and make a Tizen web application. It is the best solution to create Tizen web applications easily if you are a developer who prefers CommonJS or TypeScript language. The package also supports using the Samsung TV Product API and the Tizen common API as CommonJS or TypeScript APIs.
The create-tizen-app package also save you a lot of time when setting up a development environment. Let's see how it works!
For TypeScript Developer
If you are familiar with TypeScript or want to build with TypeScript, then you need to install all the packages listed in table 1. Check out the sample of tizen-tv-webapis and the sample of tizen-common-web.
For CommonJS Developer
Tizen Web Device API
|Access information about currently running
and installed applications, and control the applications.
|Discover multimedia content, such as
images, videos, and music, on the device.
|Access the files and directories
in the device file system.
|Install and uninstall packages, and retrieve information
about installed packages.
|Access basic definitions used in the Tizen Web Device API.
|Control the TV audio.
|Manage stereoscopic 3D effects for TV signals.
|Get information about TV setting.
|Handle key presses from input devices, such as a remote control.
|Control TV windows, such as a PiP window.
|Retrieve information about device capabilities,
such as the display, network, and storage.
Table 3. Supported TypeScript API of Tizen Web Device API
Samsung Product API
|Access the basic definitions used
in the Samsung Product API for Smart TVs.
|Retrieve advertising identifier information.
|Switch the screensaver on and off.
|Share media content between DLNA-certified
devices by initializing and using the AllShare Framework.
Retrieve a list of discovered AllShare devices with a Specified ID
or information about media files and folders,
such as the file extension and size, and content duration.
|Retrieve information about the screen and audio modes of the TV.
You can also set the widescreen mode.
|Implement audio and video playback.
|Develop a billing system for your application,
to allow users to make purchases within your application.
|Manage a microphone connected to the TV.
|Access information about the network connection
and connection-related events.
|Use Smart Hub Preview to show deep links
to application content.
|Retrieve information about the TV, such as the device unique ID (DUID),
and the model code. You can also retrieve and
set system configuration parameters.
|Access the single sign-on (SSO) features.
|Manage the TV settings.
|Store data in the application secure storage.
Table 4. Samsung TV Product APIs
If you are unfamiliar with TypeScript, learn more at What is TypeScript?.