Skip to main content

Platform

'mobile' | 'desktop' | 'tv' | 'web'
The kind of host. web means a plain browser with no bridge.
string
The concrete operating system.
In a browser the answer is immediate, with the OS read from the user agent. In a shell it takes one round trip; if an older shell does not answer within 1.5 s, the SDK falls back to a user-agent guess. The result never changes during a session and is cached. Inside UIProvider, useUI() has the same information synchronously.

Language

The shell’s UI language as a short code ('en', 'tr', …). Unlike the platform, it can change while your app is open, when the user switches language in the shell.
In a browser it is the browser’s language. Without React: