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:

isPad iOS Vega Not Available

Returns a boolean which defines if device is an iPad.

isTV

Returns a boolean which defines if device is a TV.

isVision Vega Not Available

Returns a boolean which defines if device is an Apple Vision. If you are using Apple Vision Pro (Designed for iPad) isVision will be false but isPad will be true

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.

Version Vega Not Available

Returns the version of the 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. That is, if you’re running on a phone, android and ios keys will take preference. If those are 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:
  • android (any)
  • ios (any)
  • kepler (any)
  • native (any)
  • default (any)
Example usage:
This will result in a container having flex: 1 on all platforms, a green background color on Android, a red background color on iOS, 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:
Last modified on May 13, 2026