1.0.0 • Published 10 months ago
@osiris-smarttv/smarttv-platform v1.0.0
SmartTV Platform Library
Overview
The SmartTV Platform Library is designed to provide a comprehensive set of tools and functionalities for developing applications on SmartTV devices. This library aims to simplify the development process and enhance the performance and user experience of SmartTV applications.
Installation
To install the SmartTV Platform Library, use the following command:
npm install @osiris-smarttv/smarttv-platformor
yarn add @osiris-smarttv/smarttv-platformUsage
Here is a basic example of how to use the SmartTV Platform Library in your project:
import { PlatformInstance } from '@osiris-smarttv/smarttv-platform';
// Check if running on a SmartTV
if (PlatformInstance.isSmartTV()) {
// SmartTV specific code
}
// Get current platform name
const platform = PlatformInstance.getPlatformName();
console.log(`Running on: ${platform}`);
// Check for specific platforms
if (PlatformInstance.isTizen()) {
// Tizen-specific code
}
if (PlatformInstance.isWebOS()) {
// WebOS-specific code
}
if (PlatformInstance.isHisense()) {
// Hisense-specific code
}1.0.0
10 months ago