시스템 알림을 표시할 수 있습니다.
메시지만 입력하여 간단하게 알림 대화 상자를 표시할 수 있습니다.
toast.Gamebase.Util.showAlert(message, () => { ... }));
Example
function showAlert() {
toast.Gamebase.Util.showAlert('message', function() {
console.log('Alert Closed');
});
}
알림 대화 상자를 표시한 후 처리 결과를 콜백받고 싶다면 다음 API를 사용합니다.
toast.Gamebase.Util.showConfirm(message, (isConfirmed) => { ... });
Example
function showConfirm() {
toast.Gamebase.Util.showConfirm('message', function (isConfirmed) {
if (isConfirmed) {
console.log('OK Button Clicked');
} else {
console.log('Cancel Button Clicked');
}
});
}
Error | Error Code | Description |
---|---|---|
UI_UNKNOWN_ERROR | 6999 | 알 수 없는 오류입니다(정의되지 않은 오류입니다). |