화면 » Event

on_orientation

Description

모바일 환경에서 화면 방향 변경 이벤트이다. 상세 설명은 샘플 소스를 참조한다.

Return Value

Type Description
void

Remark

PC 환경에서는 발생하지 않는다.

Example

/**
 * 모바일 환경에서 화면 방향 변경 이벤트
 * PC 환경에서는 발생하지 않는다.
 * @param orientation 방향값("portrait"/"landscape");
 */
function screen_on_orientation(orientation)
{
	factory.consoleprint("orientation = " + orientation);
}

Viewer Ver.

25.2.20.1

Update Date

20250221