> For the complete documentation index, see [llms.txt](https://developers-apps-in-toss.toss.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device.md).

# Device

디바이스의 로케일·OS, 앨범·카메라·연락처·위치, 햅틱, URL 열기 기능을 제공해요.

### API 목록

| API                        | 설명                               | 상세                                                                                                                            |
| -------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `Device.locale`            | 사용자 로케일 정보예요                     | [locale](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.locale.md)                       |
| `Device.os`                | 현재 플랫폼(`ios`/`android`) 정보예요     | [os](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.os.md)                               |
| `Device.getPhotos`         | 앨범에서 사진 목록을 불러와요                 | [getPhotos](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.getphotos.md)                 |
| `Device.getContacts`       | 연락처 목록을 페이지 단위로 가져와요             | [getContacts](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.getcontacts.md)             |
| `Device.getLocation`       | 디바이스의 현재 위치 정보를 가져와요             | [getLocation](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.getlocation.md)             |
| `Device.openCamera`        | 카메라를 실행해 촬영한 이미지를 반환해요           | [openCamera](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.opencamera.md)               |
| `Device.getAlbumItems`     | 앨범에서 사진·동영상을 선택해 가져와요            | [getAlbumItems](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.getalbumitems.md)         |
| `Device.triggerHaptic`     | 디바이스에 햅틱 진동을 일으켜요                | [triggerHaptic](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.triggerhaptic.md)         |
| `Device.subscribeLocation` | 위치 변경을 계속 감지하고 콜백을 실행해요          | [subscribeLocation](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.subscribelocation.md) |
| `Device.openURL`           | 지정한 URL을 기기의 기본 브라우저나 관련 앱에서 열어요 | [openURL](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device/device.openurl.md)                     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
