Environment
Details about the environment the SDK is running in
Access details about the environment the SDK is running in.
Properties
| Property | Type | Description |
|---|---|---|
| isMobile | Boolean | true when the UI is rendered inside Kissflow's mobile/PWA app, else false. |
Syntax
const { isMobile } = kf.env;Returns
Returns an object describing the current runtime environment.
Example
To render a compact layout when running inside the mobile app.
const { isMobile } = kf.env;
if (isMobile) {
renderCompactLayout();
}
