rdkcentral / Lightning-SDK

SDK for Lightning framework
Apache License 2.0
130 stars 69 forks source link

Feature/discovery #171

Closed jlacivita closed 3 years ago

jlacivita commented 3 years ago

Discovery

Your App likely wants to integrate with the Platform's discovery capabilities. For example to add a "Watch Next" tile that links to your app from platform home screen.

Getting access to this information requires to connect to lower level APIs made available by the platform. Since implementations differ between operators and platforms, the Lightning-SDK offers a Discovery plugin, that exposes a generic, agnostic interface to the developer.

Under the hood, an underlaying transport layer will then take care of calling the right APIs for the actual platform implementation that your App is running on.

The Discovery plugin is used to send information to the Platform.

Usage

Whenever you need to interact with the Discovery, import the Discovery plugin from the Lightning SDK

import { Discovery } from '@lightningjs/sdk'
CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.