Tizen TypeScript API References
tizen typescript api references the tizen typescript api supports extending both the samsung product api and the tizen web device api to typescript language the tizen typescript api converts the javascript apis of both the tizen web device api and the samsung product api into typescript apis the tizen typescript api is released via npm the commonjs and typescript packages of each api are listed in the following table tizen api commonjs package typescript package tizen web device api tizen-common-web @types/tizen-common-web samsung product api tizen-tv-webapis @types/tizen-tv-webapis table 1 npm packages of each tizen api package list package description npm github create-tizen-app a cli tool for setting up tizen web projects with language, bundler, editors' extension and wits npm github tizen-common-web a commonjs api of the tizen web device api npm github @types/tizen-common-web a typescript api of tizen-common-web npm github tizen-tv-webapis a commonjs api of the samsung product api npm github @types/tizen-tv-webapis a typescript api of tizen-tv-webapis npm github table 2 typescript package list setting up project create-tizen-app recommend 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 create-tizen-app supports 4 options language typescript/commonjs , bundler webpack/parcel , extension for editor vscode tizentv/atom tizentv and wits 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 if you are familiar with commonjs node developer , then you just need to install the commonjs packages check out the sample of tizen-common-web and the sample of tizen-tv-webapis for details api tizen web device api notewe have focused onto converting frequently used apis so some modules are not supported in typescript however, if you need other tizen web device api, then create a new issue on our github about the request and we will review it api description since application access information about currently running and installed applications, and control the applications 1 0 content discover multimedia content, such as images, videos, and music, on the device 2 0 filesystem access the files and directories in the device file system 1 0 package install and uninstall packages, and retrieve information about installed packages 2 1 tizen access basic definitions used in the tizen web device api 1 0 tvaudiocontrol control the tv audio 2 3 tvdisplaycontrol manage stereoscopic 3d effects for tv signals 2 3 tvinfo get information about tv setting 2 4 tvinputdevice handle key presses from input devices, such as a remote control 2 3 tvwindow control tv windows, such as a pip window 2 3 systeminfo retrieve information about device capabilities, such as the display, network, and storage 1 0 table 3 supported typescript api of tizen web device api samsung product api we support typescript apis of the entire samsung product apis if you got any problems, please report your issue to our repository api description since webapi access the basic definitions used in the samsung product api for smart tvs 2 3 adinfo retrieve advertising identifier information 2 4 appcommon switch the screensaver on and off 2 3 asfservice 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 2 3 avinfo retrieve information about the screen and audio modes of the tv you can also set the widescreen mode 2 3 avplay implement audio and video playback 2 3 billing develop a billing system for your application, to allow users to make purchases within your application 2 4 microphone manage a microphone connected to the tv 2 3 network access information about the network connection and connection-related events 2 3 preview use smart hub preview to show deep links to application content 2 3 productinfo 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 2 3 sso access the single sign-on sso features 2 3 tvinfo manage the tv settings 2 3 widgetdata store data in the application secure storage 2 3 table 4 samsung tv product apis more information if you are unfamiliar with typescript, learn more at what is typescript?