> For the complete documentation index, see [llms.txt](https://wiki.playgama.com/playgama/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.playgama.com/playgama/bridge-sdk-v1/bridge-sdk/api/device.md).

# Device

Read-only information about the player's device. Optional; use it to switch UI layouts, input schemes, or asset quality between `mobile`, `tablet`, `desktop`, and `tv`.

## Device Type

Use this value for broad adaptation only, such as mobile controls, desktop hotkeys, or lower-quality assets on small devices.

{% tabs %}
{% tab title="Plain JS" %}

```javascript
bridge.device.type
```

{% endtab %}

{% tab title="Unity" %}

```java
Bridge.device.type
```

{% endtab %}

{% tab title="Construct 3" %}

```javascript
PlaygamaBridge.DeviceType
```

{% endtab %}

{% tab title="GDevelop" %}

```javascript
PlaygamaBridge::DeviceType()
```

{% endtab %}

{% tab title="Godot" %}

```gdscript
Bridge.device.type
```

{% endtab %}

{% tab title="GameMaker" %}

```javascript
playgama_bridge_device_type()
```

{% endtab %}

{% tab title="Defold" %}

```lua
bridge.device.type()
```

{% endtab %}

{% tab title="Cocos Creator" %}

```javascript
bridge.device.type
```

{% endtab %}

{% tab title="Scratch" %}

<figure><img src="/files/IzP874jVTLYM7DKpeXXG" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

Possible values: `mobile`, `tablet`, `desktop`, `tv`.

<details>

<summary>Platform support · all 28 platforms</summary>

**Supports:** `absolute_games`, `bitquest`, `crazy_games`, `discord`, `dlightek`, `facebook`, `game_distribution`, `gamepush`, `gamesnacks`, `huawei`, `jio_games`, `lagged`, `microsoft_store`, `msn`, `ok`, `playdeck`, `playgama`, `poki`, `portal`, `reddit`, `samsung`, `telegram`, `tiktok`, `vk`, `xiaomi`, `y8`, `yandex`, `youtube`

</details>
