Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content

Example


Reference

Properties

constants

Returns an object which contains all available common and specific constants related to the platform. Properties:

isTV

Returns a boolean which defines if device is a TV.

isTesting

Returns a boolean which defines if application is running in Developer Mode with testing flag set.

OS

Returns string value representing the current OS.

Methods

select

Returns the most fitting value for the platform you are currently running on.

Parameters:

Select method returns the most fitting value for the platform you are currently running on. If not specified, kepler key then native key will be used and then the default key. The config parameter is an object with the following keys:
  • kepler (any)
  • native (any)
  • default (any)
Example usage:
This will result in a container having flex: 1 on all platforms a yellow background on Vega and a blue background color on other platforms. Since the value of the corresponding platform key can be of type any, select method can also be used to return platform-specific components, like below: Since the value of the corresponding platform key can be of type any, select method can also be used to return platform-specific components, like below:
Last modified on December 10, 2025