Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This topic documents how to get started with the client-side Roku SDK, and links to reference information on all of the supported features. The Roku SDK is written in BrightScript.LaunchDarkly’s SDKs are open source. In addition to this reference guide, we provide source, API reference documentation, and a sample application:
| Resource | Location |
|---|---|
| SDK API documentation | None |
| Supported SDK Versions | Roku SDK |
| GitHub repository | roku-client-sdk |
| Sample application | Roku |
| Published module | available through GitHub releases |
Get started
After you complete the Get started process, follow these instructions to start using the LaunchDarkly SDK in your Roku Application:- Install the SDK
- Initialize the client
- (Optional) Initialize an interface to SceneGraph
- Evaluate a flag
Install the SDKWe provide releases on [Git
Hub](https://github.com/launchdarkly/roku-client-sdk/releases). Download the latest release and extract the provided files into your source tree. You may need to rename the paths insideLaunchDarklyTask.xml depending on your project structure.
For SceneGraph usage, add a LaunchDarklyTask node to your scene.
Initialize the client
To create a client instance, you need your environment’s mobile key and the context for which you want to evaluate flags. This authorizes your application to connect to a particular environment within LaunchDarkly. Here’s how to create the client:Initialize an interface to Scene
GraphIf you are working with SceneGraph, then for each SceneGraph component in which you want to use the Roku SDK, you need to initialize an interface to talk to the SceneGraph. This interface provides all the expected client functionality, such as evaluation. Here’s how:Evaluate a flag
After you initialize the client, you can use it to check which variation a particular context will receive for a feature flag. Here’s how:Supported features
This SDK supports the following features:- Anonymous contexts and users
- Configuration, including
- Context configuration
- Evaluating flags
- Flag evaluation reasons
- Flushing events
- Getting all flags
- Identifying and changing contexts
- Logging configuration
- Monitoring SDK status
- Private attributes
- Relay Proxy configuration, using proxy mode
- Sending custom events
- Subscribing to flag changes