연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
blockly > ConnectionChecker > canConnectToPrevious_
ConnectionChecker.canConnectToPrevious_() 메서드
드래그 확인을 위한 도우미 함수입니다.
서명:
protected canConnectToPrevious_(a: Connection, b: Connection): boolean;
매개변수
매개변수 |
유형 |
설명 |
a |
연결 |
확인할 연결입니다. 이 연결은 문이거나 다음 연결이어야 합니다. |
b |
연결 |
확인할 근처 연결(이전 연결이어야 함) |
반환:
부울
연결이 허용되면 true, 허용되지 않으면 false입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-10-16(UTC)
[null,null,["최종 업데이트: 2024-10-16(UTC)"],[[["The `canConnectToPrevious_()` method is a helper function used for validating block connections during drag operations."],["It checks if a statement input or next connection (`a`) can be connected to a previous connection (`b`), returning `true` if the connection is allowed and `false` otherwise."],["This method is utilized within the ConnectionChecker class to ensure that only valid block connections are made during dragging."]]],[]]