팩토리 » Api

xplusstartvacancytimer

Description

이석(자리비움)체크를 시작하기 위한 API입니다.
이석이 확인된 경우 화면의 on_notifyvacancy 이벤트가 발생합니다.
bLocal 파라미터를 true로 주는 경우 브라우저에 대해서만 이석체크를 수행합니다.
bLocal 파라미터를 false로 주는 경우 데스크톱 전체에 대해서 이석체크를 수행합니다.

Parameters

Parameters Type Description
objScreen INSTANCE 화면 오브젝트
nTimerID short 타이머 아이디
nElapse short 이석체크 시간(ms단위)
bLocal BOOL 브라우저에 대해서만 이석체크 여부

Return Value

Type Description
BOOL 성공/실패 여부

Remark

전용 브라우저 환경에서만 동작합니다.

Example

function screen_on_notifyvacancy(timer_id) { if (timer_id == 1) { // 브라우저 이석 txt_01.settext("자리비움 : " + timer_id); } else if (timer_id == 2) { // 데스트톱 이석 txt_01.settext("전체 자리비움 : " + timer_id); } } function start_on_mouseup(objInst) { // 브라우저에 대해서 7초단위로 이석체크 factory.xplusstartvacancytimer(screen, 1, 7000, true); // 데스크톱에 대해서 9초단위로 이석체크 factory.xplusstartvacancytimer(screen, 2, 9000, false); } function stop_on_mouseup(objInst) { // 브라우저 이석체크 중지 factory.xplusstopvacancytimer(1); // 데스크톱 이석체크 중지 factory.xplusstopvacancytimer(2); }

See Also

xplusstopvacancytimer

Viewer Ver.

9.1.1.1

Update Date

20220303