Skip to Content
⚠️ Sorry, the service is currently unavailable.

useCocursor

useCoCursor 훅을 통해 CoCursor의 설정을 변경하거나, 현재 설정값을 읽을 수 있습니다.

const { // state channel, myName, allowMyCursorShare, showMyCursor, quality, disabled, // setState setChannel, setMyName, setAllowMyCursorShare, setShowMyCursor, setQuality, setDisabled, } = useCoCursor();

state

  • channel (string | undefined): 현재 채널.
  • myName (string | undefined): 사용자 커서 이름.
  • allowMyCursorShare (boolean): 나의 커서 정보 수신 여부.
  • showMyCursor (boolean | undefined): 나의 커서 표시 여부.
  • quality ("high" | "middle" | "low"): 현재 품질.
  • disabled (boolean): CoCursor 기능의 활성화 여부.

setState

  • setChannel: 채널 설정.
  • setMyName: 사용자 커서 이름 설정.
  • setAllowMyCursorShare: 나의 커서 정보 수신 여부 설정.
  • setShowMyCursor: 나의 커서 표시 여부 설정.
  • setQuality: 품질 설정.
  • setDisabled: CoCursor 기능을 활성화하거나 비활성화.
Last updated on