---
sourceDocument: 호주 API 참조
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/api-reference

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 API 참조

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# cabrillo.camera - 클라이언트

# cabrillo.camera - 클라이언트 {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 03월 12일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 1분

카브릴로 JS 바코드 스캔을 위한 카메라 접근을 제공하는 카메라 기능입니다.

## cabrillo.camera - getBarcode() {#ariaid-title2}

바코드 스캔을 위한 표준 인터페이스를 제공합니다. 이를 사용하여 바코드 스캐너를 표시하고 스캔한 결과를 캡처합니다.
지원되는 바코드 유형입니다.

* 1D 바코드: EAN-13, EAN-8, UPC-A, UPC-E, Code-39, Code-93, Code-128, ITF
* 2D 바코드: QR 코드, 데이터 매트릭스, PDF-417, AZTEC
{#CC-getBarcode__ul_uls_1gf_wbb}
{#CC-getBarcode__table_ah1_tff_wbb__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 1. 매개변수]

{#CC-getBarcode__table_ah1_tff_wbb} {#CC-getBarcode__table_bh1_tff_wbb__entry__2}

| 유형 | 설명 |
|-|-|
| 약속 | 바코드 문자열로 해결하거나 작업이 실패하면 오류를 해결합니다. |
[표 2. 반환]

{#CC-getBarcode__table_bh1_tff_wbb}  

    cabrillo.camera.getBarcode().then(function(barcode) {
        if (barcode) {
            console.log('Scanned barcode.', barcode);
        } else {
            console.log('User cancelled scanning barcode.');
        }
    }, function(error) {
        console.log('Failed to scan barcode.', error);
    });


