# 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 <a href="#device-type" id="device-type"></a>

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`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.playgama.com/playgama/sdk/api/device.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
