---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/defold/params.md
  - https://yandex.com/dev/games/doc/hi/sdk/defold/params.md
  - https://yandex.com/dev/games/doc/ko/sdk/defold/params.md
  - https://yandex.com/dev/games/doc/ru/sdk/defold/params.md
  - https://yandex.com/dev/games/doc/tr/sdk/defold/params.md
  - https://yandex.com/dev/games/doc/vi/sdk/defold/params.md
  - https://yandex.com/dev/games/doc/zh/sdk/defold/params.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/en/llms.txt

# Other SDK objects and parameters

<!-- source: en/_includes/script-common.md -->
<!-- source: en/_includes/script/index-js.md -->

<!-- endsource: en/_includes/script/index-js.md -->

<!-- source: en/_includes/script/requirements-js.md -->

<!-- endsource: en/_includes/script/requirements-js.md -->

<!-- source: en/_includes/script/image-modal-js.md -->

<!-- endsource: en/_includes/script/image-modal-js.md -->
<!-- endsource: en/_includes/script-common.md -->

## screen object {#screen}

Contains settings for working with the screen:

```lua showLineNumbers
{
    fullscreen: {
        status: function(): "on"|"off",
        request: function(): nil,
        exit: function(): nil
    },
    orientation: {
        get: function(): "portrait"|"landscape",
        set: function(value: "portrait"|"landscape")
    }
}
```

{% note alert %}

Yandex Games can automatically start in fullscreen mode, but many browsers prohibit switching modes without a user command.

Yandex Games already has a button in the upper-right corner for switching to full screen, so use the `screen.fullscreen` object parameters to handle button clicks directly in the game.

{% endnote %}

## clipboard object {#clipboard}

Designed to write a string to the clipboard using the method `ysdk.clipboard.write_text(text: string)`.

## device_info object {#device-info}

Designed to retrieve information about the user's device using the `ysdk.device_info()` method.

```lua showLineNumbers
{
    type: "mobile"|"desktop"|"tablet"|"tv",
    isMobile: boolean,
    isDesktop: boolean,
    isTablet: boolean,
    isTV: boolean,
}
```

---


<!-- source: en/_includes/button-git.md -->
<a href="https://github.com/yandex-games-plugins/defold">
  <span class="button">Repository</span>
</a>
<!-- endsource: en/_includes/button-git.md -->
