Blockly가 2025년 11월 10일에 Raspberry Pi Foundation으로 이전되었습니다. 블로그 게시물과 FAQ를 읽어보세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
blockly > registry
레지스트리 네임스페이스
클래스
| 클래스 |
설명 |
| 유형 |
일반에 저장된 요소의 유형이 포함된 이름입니다. |
함수
| 함수 |
설명 |
| getAllItems(type, opt_cased, opt_throwIfMissing) |
지정된 유형으로 등록된 항목의 지도를 반환합니다. |
| getClass(type, name, opt_throwIfMissing) |
지정된 이름 및 유형의 클래스를 가져옵니다. |
| getClassFromOptions(type, options, opt_throwIfMissing) |
지정된 유형의 Blockly 옵션에서 클래스를 가져옵니다. 이는 내장된 기능을 재정의하는 플러그인에 사용됩니다. (예: 도구 상자) |
| getObject(type, name, opt_throwIfMissing) |
지정된 이름 및 유형의 객체를 가져옵니다. |
| hasItem(type, name) |
레지스트리에 지정된 유형 및 이름의 항목이 포함되어 있는지 여부를 반환합니다. |
| register(유형, 이름, 레지스트리Item, Opt_allowOverrides) |
유형 및 이름을 기반으로 클래스를 등록합니다. |
| unregister(유형, 이름) |
지정된 유형 및 이름으로 레지스트리 항목을 등록 취소합니다. |
변수
| 변수 |
설명 |
| 기본 |
플러그인 유형의 기본 클래스를 등록하는 데 사용되는 문자열입니다. |
| TEST_ONLY |
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-25(UTC)"],[],["The registry namespace manages items in Blockly using types and names. It includes a `Type` class representing an element's type. Key actions involve retrieving registered items via `getAllItems`, `getClass`, `getClassFromOptions`, and `getObject`. The functions `hasItem`, `register`, and `unregister` are used to check, add, and remove items, respectively. `DEFAULT` and `TEST_ONLY` are used for specifying default classes and for testing purposes.\n"]]