Created
October 24, 2019 12:51
-
-
Save MotiurRahman/1ace3ab88b19380942dce27242703058 to your computer and use it in GitHub Desktop.
ACA Module test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow({ | |
backgroundColor : '#fff' | |
}); | |
// Create a Button. | |
var ACATest = Ti.UI.createButton({ | |
title : 'ACATest', | |
color : "red", | |
height : Ti.UI.SIZE, | |
width : Ti.UI.SIZE, | |
}); | |
var acs = require("com.appcelerator.aca"); | |
// Listen for click events. | |
ACATest.addEventListener('click', function() { | |
try { | |
var err = new Error('FATAL ERROR: Value cannot be null or undefined!'); | |
if (value === null || value === undefined) | |
throw err; | |
} catch (err) { | |
acs.logHandledException(err); | |
} | |
}); | |
win.add(ACATest); | |
win.open(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment