Skip to content

Instantly share code, notes, and snippets.

@MotiurRahman
Created October 24, 2019 12:51
Show Gist options
  • Save MotiurRahman/1ace3ab88b19380942dce27242703058 to your computer and use it in GitHub Desktop.
Save MotiurRahman/1ace3ab88b19380942dce27242703058 to your computer and use it in GitHub Desktop.
ACA Module test
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