Surface Modification of Titanium and Titanium Alloy Using ...
Titanium Workshop - [Sainté Mobile Days]
-
Upload
christian-brousseau -
Category
Technology
-
view
592 -
download
1
description
Transcript of Titanium Workshop - [Sainté Mobile Days]
![Page 1: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/1.jpg)
Building mobile apps with Titanium and Alloy
Boydlee Pollentine & Christian
Brousseau
![Page 2: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/2.jpg)
@TheBrousse @Boydleep
![Page 3: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/3.jpg)
What is Titanium
![Page 4: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/4.jpg)
How does it work?
Native Application
Native components
JavaScript Runtime
JavaScript Code
Titanium Code
(JavaScript)
Native Code
Objective-CJavaOther
TitaniumCompiler
NativeCompiler
![Page 5: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/5.jpg)
Under the hood
Operating System
JavaScript - Native Bridge
UI API Phone API Modules
Your Application
![Page 6: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/6.jpg)
Resources/app.js
var window = Ti.UI.createWindow({backgroundColor: ‘white’
});
var label = Ti.UI.createLabel({color: ‘black’,text: ‘Hello World’
});
label.addEventListener(‘click’,function() {
require(‘windowTwo’);}
);
window.add(label);window.open();
Hello World
![Page 7: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/7.jpg)
Alloy
![Page 8: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/8.jpg)
How does “that” work
TitaniumCode
NativeCode
TitaniumCompiler
NativeCompiler
Alloy Code
JavaScriptXMLTSS
AlloyPre-compiler
![Page 9: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/9.jpg)
Same Hello World
“Window”: {backgroundColor:
“white”}
“Label”: {color: “black”
}
styles/index.tss
<Alloy><Window>
<Label onClick=”open”>Hello World</Label>
</Window></Alloy>
views/index.xml
function open() {require(“windowTwo”);
}
$.index.open();
controllers/index.js
![Page 10: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/10.jpg)
This is our App
![Page 11: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/11.jpg)
We need data
URL: http://
developer.rottentomatoes.com
API Key: fuvfpegjuuqtrdj5wm6sg2x5
![Page 12: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/12.jpg)
What does it return?{ "total": 37, "movies": [ { "id": "769959054", "title": "The Dark Knight", "year": 2008, "release_dates": { "theater": "2008-07-18", "dvd": "2008-12-09" }, "ratings": { "critics_rating": "Certified Fresh", "critics_score": 94 } }, { "id": "10483", "title": "Batman", "year": 1989, "release_dates": { "theater": "1989-06-23", "dvd": "1997-03-25" }, "ratings": { "critics_rating": "Fresh", "critics_score": 71 } } ]}
![Page 13: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/13.jpg)
Let’s get to work
![Page 14: Titanium Workshop - [Sainté Mobile Days]](https://reader035.fdocuments.us/reader035/viewer/2022062513/554d2016b4c905c5208b4a36/html5/thumbnails/14.jpg)
There are books for that