screen 오브젝트의 toastmessage API로 로드된 메시지에 대한 이벤트이다.
Parameters | Type | Description |
---|---|---|
toastmessage_id | STRING | toastmessage APId에서 리턴한 메세지 ID |
event_type | STRING | 이벤트 타입 |
event_data | STRING | 이벤트 타입에 따른 이벤트 데이터 |
user_data | STRING | toastmessage API에서 지정한 데이터 |
Type | Description |
---|---|
void |
* event_type 값 "close" : 토스트메시지 닫기 버튼 클릭 이벤트 "titleclick" : 토스트메시지 타이틀 클릭 이벤트 (event_data 파라미터에 클릭한 문자열 전달됨) "contentclick" : 토스트메시지 내용 클릭 이벤트 (event_data 파라미터에 클릭한 문자열 전달됨)
function aaa_on_click(objInst)
{
var arr_title, arr_msg;
arr_msg = [];
// 메시지 1번째 라인
arr_msg.push("");
arr_msg.push("첫번째 라인: 파란색 언더라인");
arr_msg.push("");
// 메시지 2번째 라인
arr_msg.push("");
arr_msg.push("2번째 라인: 빨간색");
arr_msg.push("");
screen.toastmessage("회색 타이틀",
arr_msg.join(""), 0, 0, 5, 400, "custom_toast_class", "user_data");
}
function screen_on_toastmessage(toastmessage_id, event_type, event_data, user_data)
}