cljs-exponent.constants

System information that remains constant throughout the lifetime of your app.

app-ownership

Returns exponent, standalone, or guest. If exponent, the experience is running inside of the Exponent client. If standalone, it is a standalone app. If guest, it has been opened through a link from a standalone app.

Constants

device-id

An identifier that is unique to this particular device and installation of the Exponent client.

device-name

A human-readable name for the device type.

device-year-class

The device year class of this device.

exponent-version

The version string of the Exponent client currently running

is-device

true if the app is running on a device, false if running in a simulator or emulator.

linking-uri

When an app is opened due to a deep link, the prefix of the URI without the deep link part. This value depends on Exponent.Constants.appOwnership: it may be different if your app is running standalone vs. in the Exponent client.

manifests

platform

Exponent.Constants.platform.
ios
platform
The Apple internal model identifier for this device, e.g. iPhone1,1.

model
The human-readable model name of this device, e.g. iPhone 7 Plus.

userInterfaceIdiom
The user interface idiom of this device, i.e. whether the app is running on an iPhone or an iPad. Current supported values are handset and tablet. Apple TV and CarPlay will show up as unsupported.

session-id

true if the app is running on a device, false if running in a simulator or emulator.

status-bar-height

The default status bar height for the device. Does not factor in changes when location tracking is in use or a phone call is active.

system-fonts

A list of the system font names available on the current device.