---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
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
  - href: vi/sdk/defold/params.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/vi/llms.txt

# Các đối tượng và tham số SDK khác

## Đối tượng screen

Chứa các thiết lập để làm việc với màn hình:

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

{% note alert "Chú ý" %}

Yandex Games có thể tự động khởi động ở chế độ toàn màn hình, nhưng nhiều trình duyệt cấm chuyển chế độ nếu không có lệnh của người dùng.

Yandex Games đã có một nút ở góc trên bên phải để chuyển sang chế độ toàn màn hình, vì vậy hãy sử dụng các tham số đối tượng `screen.fullscreen` để xử lý việc nhấp vào nút trực tiếp trong trò chơi.

{% endnote %}

## Đối tượng clipboard

Dùng để ghi một chuỗi vào bộ nhớ tạm bằng phương thức `ysdk.clipboard.write_text(text: string)`.

## Đối tượng device_info

Dùng để lấy thông tin về thiết bị của người dùng bằng phương thức `ysdk.device_info()`.

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

---


<!-- source: vi/_includes/button-git-defold.md -->
<a href="https://github.com/yandex-games-plugins/defold">
  <span class="button">Kho lưu trữ</span>
</a>
<!-- endsource: vi/_includes/button-git-defold.md -->
