Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
27d6e21
Update documentation to version 0.3.0
ErjanGavalji Oct 17, 2014
11636d8
Merge branch 'ErjanGavalji/v0.3.0'
ErjanGavalji Oct 17, 2014
00757b1
Apply newly generated API reference
ErjanGavalji Nov 19, 2014
99c0468
Sort the TOC
ErjanGavalji Nov 19, 2014
8f473e4
Merge branch 'ErjanGavalji/v0.4.0' into release
ErjanGavalji Nov 19, 2014
58547b8
Move Api reference to a folder of its own
ErjanGavalji Nov 19, 2014
6d8e772
Add content topics
ErjanGavalji Nov 19, 2014
d8a5794
Merge branch 'ErjanGavalji/move-api-reference-to-specific-folder' int…
ErjanGavalji Nov 19, 2014
337d31d
Merge branch 'release'
ErjanGavalji Nov 20, 2014
823540c
Fix ApiReference link
ErjanGavalji Dec 3, 2014
b28dd72
Add 0.4.2 articles
ErjanGavalji Dec 15, 2014
59ade14
Some fixes on content and auto-generated files
ErjanGavalji Dec 15, 2014
50854d9
Create ui-with-xml.md
Dec 17, 2014
e7185aa
Update ui-with-xml.md
Dec 17, 2014
567ed61
Update ui-with-xml.md
Dec 17, 2014
f2a7fc3
Update ui-with-xml.md
Dec 17, 2014
10d2b39
Update README.md
Dec 17, 2014
6dfbf45
Update README.md
Dec 17, 2014
c1df805
Update ui-with-xml.md
Dec 17, 2014
8fb2eaa
Add positions
ErjanGavalji Dec 18, 2014
8e21982
Create ui-with-xml.md
Dec 17, 2014
61ace61
Update ui-with-xml.md
Dec 17, 2014
fab7ed1
Update ui-with-xml.md
Dec 17, 2014
d5a5fd3
Update ui-with-xml.md
Dec 17, 2014
b6e945d
Update README.md
Dec 17, 2014
6a8b962
Update README.md
Dec 17, 2014
d3fd486
Update ui-with-xml.md
Dec 17, 2014
6d06edf
Improve nav titles
ErjanGavalji Dec 18, 2014
98d773a
Reorder pages
ErjanGavalji Dec 18, 2014
72cb082
Fix titles and nav-titles
ErjanGavalji Dec 18, 2014
25244ce
Update the navigation article
ErjanGavalji Dec 18, 2014
2dc8884
Update ui-with-xml.md
Dec 18, 2014
252f98b
Update ui-with-xml.md
Dec 18, 2014
9690c2c
Update ui-with-xml.md
Dec 18, 2014
bc2f857
Update ui-with-xml.md
Dec 18, 2014
90fdad3
Update ui-with-xml.md
Dec 18, 2014
c92b664
Update ui-with-xml.md
Dec 18, 2014
d44cd72
Update ui-with-xml.md
Dec 18, 2014
01f9351
Update ui-with-xml.md
Dec 18, 2014
dff99f5
Merge branch 'ErjanGavalji/v0.4.2' into release
ErjanGavalji Dec 18, 2014
b71da48
Fix merge conflict
ErjanGavalji Dec 18, 2014
5140f29
Added Navigation article.
hamorphis Jan 8, 2015
29cdfa7
UI views articles
Jan 12, 2015
0cf020b
Update ui-views.md
Jan 12, 2015
0b3f3e2
Added location module overview.
Jan 13, 2015
1ad345c
Fixed some wording and typos.
Jan 13, 2015
2158c71
Merge pull request #11 from NativeScript/nnikolov/LocationDocs
Jan 13, 2015
724d0ef
Updated the navigation article.
hamorphis Jan 13, 2015
b6109a7
Merge pull request #12 from NativeScript/navigation
hamorphis Jan 13, 2015
83c972c
Update ui-views.md
Jan 13, 2015
9982dab
Updated navigation article.
hamorphis Jan 13, 2015
102e2c0
Merge pull request #13 from NativeScript/navigation
hamorphis Jan 13, 2015
ff6555f
Create ui-dialogs
Jan 13, 2015
b13dce7
Rename ui-dialogs to ui-dialogs.md
Jan 13, 2015
76715d0
Update ui-dialogs.md
Jan 13, 2015
5c435cd
Update ui-dialogs.md
Jan 13, 2015
e7437aa
Update ui-dialogs.md
Jan 13, 2015
e416876
Update ui-dialogs.md
Jan 13, 2015
6b150be
Update ui-dialogs.md
Jan 13, 2015
b52a317
Update ui-dialogs.md
Jan 13, 2015
f7dd544
Update ui-dialogs.md
Jan 13, 2015
86beebb
Added application-management help file.
hamorphis Jan 14, 2015
9fabd08
Merge pull request #14 from NativeScript/application-management
hamorphis Jan 14, 2015
2c1b674
Update README.md
Jan 14, 2015
7ba0514
Update ui-dialogs.md
Jan 14, 2015
93ad2e9
Fixed a typo.
hamorphis Jan 14, 2015
ffd6520
Update ui-with-xml.md
Jan 14, 2015
b6da85f
Update ui-with-xml.md
Jan 14, 2015
9a71efc
Update ui-with-xml.md
Jan 14, 2015
23f0906
Update ui-with-xml.md
Jan 14, 2015
5fb887f
Update ui-with-xml.md
Jan 14, 2015
a96cd0f
Update ui-with-xml.md
Jan 14, 2015
0541f7d
Update ui-with-xml.md
Jan 14, 2015
47faa0d
Update ui-with-xml.md
Jan 14, 2015
8bb01a7
Update ui-with-xml.md
Jan 14, 2015
d601df6
Fixed the ordering.
hamorphis Jan 14, 2015
bbcba42
Update ui-with-xml.md
Jan 14, 2015
c19ab28
Merge pull request #15 from NativeScript/fix
hamorphis Jan 14, 2015
ad8d526
Update ui-with-xml.md
Jan 14, 2015
3f92a1e
Update ui-with-xml.md
Jan 14, 2015
1244a55
Refactored data binding documentation.
Jan 14, 2015
de021e3
Merge pull request #16 from NativeScript/nnikolov/DataBindingDocs
Jan 14, 2015
497d2e0
Escape curly brackets from ui-with-xml.md
ErjanGavalji Jan 14, 2015
66fe2ea
Escape the curly brackets from the bindings.md as well
ErjanGavalji Jan 14, 2015
eebcd53
Fixing a couple small typos
tjvantoll Dec 23, 2014
b1716c6
Improved some parts of documentation.
Jan 14, 2015
72c9480
Merge pull request #19 from NativeScript/nnikolov/DataBindingDocs2
Jan 14, 2015
6233934
Added the stub for the modules article.
hamorphis Jan 15, 2015
5dc5b0f
Merge pull request #20 from NativeScript/modules
hamorphis Jan 15, 2015
852a585
Adding documentation about events.
Jan 19, 2015
bdf4157
Update bindings.md
ErjanGavalji Jan 19, 2015
c67bf4b
Update bindings.md
ErjanGavalji Jan 19, 2015
76ebe0e
Some typo fixes
ErjanGavalji Jan 19, 2015
0c6182f
Merge pull request #21 from NativeScript/nnikolov/EventsDocumentation
Jan 19, 2015
9514be3
modules help topic.
hamorphis Jan 21, 2015
b14dc97
Merge pull request #22 from NativeScript/modules
hamorphis Jan 21, 2015
6863a09
Rebuilt the help against the latest sources.
hamorphis Jan 23, 2015
4b98141
Merge pull request #23 from NativeScript/modules
hamorphis Jan 23, 2015
d22e59b
Fix encoding issues
ErjanGavalji Jan 23, 2015
6b6691c
Regenerate modules
ErjanGavalji Jan 23, 2015
919242f
Dependency property documentation.
Jan 24, 2015
881eb60
Minor edits to content
ErjanGavalji Jan 24, 2015
7f12c99
Merge pull request #24 from NativeScript/nnikolov/PropertiesDoc
Jan 24, 2015
2eab93a
Added links to color and fps-meter HOW-TOs
hamorphis Jan 23, 2015
535aee5
Added observable module HOW-TO.
hamorphis Jan 23, 2015
2fef220
Added several HOW-TOs
hamorphis Jan 26, 2015
99b7474
Merge pull request #25 from NativeScript/howtos
hamorphis Jan 26, 2015
a42134b
Regenerate the docs
ErjanGavalji Jan 26, 2015
95a1372
Screenshots
Jan 27, 2015
b667de6
Merge pull request #26 from NativeScript/feature/screenshots
Jan 27, 2015
261e199
Added frame HOW-TO
hamorphis Jan 26, 2015
16b789a
Added gestures HOW-TO.
hamorphis Jan 26, 2015
1eab011
Added search-bar HOW-TO.
hamorphis Jan 27, 2015
5cf8dfa
Added image-cache HOW-TO.
hamorphis Jan 27, 2015
b2f670a
Added dialogs HOW-TO.
hamorphis Jan 27, 2015
abb2191
Merge pull request #27 from NativeScript/howtos
hamorphis Jan 27, 2015
dd4104e
Update bindings.md
Feb 3, 2015
4432a43
Fix image paths
ErjanGavalji Feb 4, 2015
afaf5cc
Getting started with the "Getting Started" article
Jan 13, 2015
8a336b8
Add headers
Jan 14, 2015
d19d964
More on getting-started article
Feb 4, 2015
8b18e97
Added jsdocs for all public modules.
hamorphis Feb 5, 2015
f1ca932
Merge pull request #29 from NativeScript/modules-api-ref
hamorphis Feb 5, 2015
6e2bf53
Added documentation for gestures.
hamorphis Feb 5, 2015
e51dca8
Fixed spacing.
hamorphis Feb 5, 2015
38b3420
fix
hamorphis Feb 5, 2015
fe8268e
Merge pull request #30 from NativeScript/gestures
hamorphis Feb 5, 2015
5697eb2
Merge pull request #28 from NativeScript/feature/getting-started
Feb 5, 2015
f0c20c7
Added Style properties.
Feb 9, 2015
1a76906
Merge pull request #31 from NativeScript/nnikolov/StylePropertiesHelp
Feb 9, 2015
53274b4
Update getting-started.md
Feb 9, 2015
2973f88
Replaced BCL with NativeScript.
Feb 9, 2015
40488b7
Merge pull request #32 from NativeScript/nnikolov/HelpRemainngTasks
Feb 9, 2015
deddc72
Styling link removed
Feb 9, 2015
2811114
Max width and height removed
Feb 9, 2015
5d7aeaa
Updated gestures doc + API ref.
hamorphis Feb 9, 2015
e6aac89
New version of Api Reference.
Feb 10, 2015
3e572c0
Merge pull request #33 from NativeScript/nnikolov/HelpRemainngTasks
Feb 10, 2015
fd73f43
Updated the api-ref
hamorphis Feb 10, 2015
ab618da
Merge pull request #35 from NativeScript/api-ref
hamorphis Feb 10, 2015
858060a
Use an index.md as main page. Use a README.md link to it to visualize…
ErjanGavalji Feb 10, 2015
3f7cd70
Delete the README. Test if Github will handle
ErjanGavalji Feb 10, 2015
3dbebad
Revert "Delete the README. Test if Github will handle"
ErjanGavalji Feb 10, 2015
97dad07
Merge branch 'ErjanGavalji/ensure-index-html'
ErjanGavalji Feb 10, 2015
f3f500e
Add links to android and ios docs
Feb 10, 2015
c7b1733
Update Api reference to latest.
Feb 10, 2015
3593f2b
Merge pull request #37 from NativeScript/nnikolov/HelpRemainingTasks2
Feb 10, 2015
f307a05
Updated Api reference to the latest state.
Feb 11, 2015
49c7fff
Merge pull request #38 from NativeScript/nnikolov/HelpRemainingTasks3
Feb 11, 2015
592dbc2
A few trivial spelling fixes
tjvantoll Feb 11, 2015
7137139
Updated Api reference with latest and greatest.
Feb 12, 2015
3433696
Update for Api reference to latest.
Feb 12, 2015
6465652
Added Borders HOW-TO.
hamorphis Feb 13, 2015
797bfac
Refreshed the API Reference
ErjanGavalji Feb 13, 2015
31be347
Sligthly reordered topics.
Feb 13, 2015
a4a7264
Merge pull request #41 from NativeScript/nnikolov/TopicsReorder
Feb 13, 2015
a0df685
Update Api ref to latest and greatest.
Feb 13, 2015
efb3be1
Merge pull request #42 from NativeScript/nnikolov/ApiRefUpdate
Feb 13, 2015
91d8061
Get the content
ErjanGavalji Feb 13, 2015
0f33911
Add the jekyll header
ErjanGavalji Feb 13, 2015
8e34cb7
Help-ify the doc
ErjanGavalji Feb 13, 2015
5fc5b51
Change the reference to the CLI article
ErjanGavalji Feb 13, 2015
f225e75
Merge branch 'ErjanGavalji/cli-article'
ErjanGavalji Feb 13, 2015
9da10fa
Update API Reference
ErjanGavalji Feb 13, 2015
20c29d4
Update Api ref w/ fixed interface labels
ErjanGavalji Feb 13, 2015
a648dc4
Lollipop gallery app screenshots
Feb 13, 2015
12c8b78
Merge pull request #44 from NativeScript/feature/lollipop-screens
Feb 16, 2015
9e00694
Add .gitattributes file to have win line endings fixed
ErjanGavalji Feb 16, 2015
42c4981
layouts updated
Feb 19, 2015
acba7d3
layouts updated
Feb 19, 2015
d1b6aad
layouts updated
Feb 19, 2015
547795c
layouts updated
Feb 19, 2015
b5fb30e
layouts updated
Feb 19, 2015
43c3176
layouts updated
Feb 19, 2015
ee4cb55
Update Api Reference
ErjanGavalji Feb 20, 2015
f1547b2
Regenerate Api Ref
ErjanGavalji Feb 20, 2015
7a3c678
Rename all "panel"s to "layout"s
ErjanGavalji Feb 20, 2015
a57001d
Regenerate Api Reference
ErjanGavalji Feb 20, 2015
8192ad1
Styling topic updated with adding css options.
Feb 20, 2015
08b9889
ApiReference latest and greatest.
Feb 20, 2015
72cda16
Merge pull request #45 from NativeScript/nnikolov/StylingDocUpdate
Feb 20, 2015
8df0aa4
Add the runtime-specific submodules
ErjanGavalji Feb 20, 2015
9ec92d9
Update the homepage to point to the platform-specific topics
ErjanGavalji Feb 20, 2015
71c248d
Merge branch 'ErjanGavalji/add-runtime-specific-docs'
ErjanGavalji Feb 20, 2015
a5898d8
Corrupted line endings
ikoevska Feb 23, 2015
76a25c0
Edited Application Management
ikoevska Feb 23, 2015
35f53ee
Fix the mainModule description
ErjanGavalji Feb 24, 2015
5d3081f
Edited the navigation article
ikoevska Feb 24, 2015
5f65d7d
Update styling.md
Feb 24, 2015
b5853c4
Merge pull request #47 from NativeScript/app-wide-css-fix
Feb 24, 2015
59e6679
Rename images and add dock-layout image
Feb 24, 2015
2ca8f62
Dock image updated
Feb 24, 2015
a83a829
Merge pull request #48 from NativeScript/feature/rename-images
Feb 24, 2015
84067fa
Update ApiRef
ErjanGavalji Feb 24, 2015
83d3f31
ImagePage images updated
Feb 24, 2015
6e7225f
Reworking the overview
ikoevska Feb 24, 2015
c43b897
Corrupted line endings
ikoevska Feb 24, 2015
1cadf18
Layouts article
Feb 25, 2015
ce2e804
Edited Application Management
ikoevska Feb 23, 2015
94d20ec
Edited the navigation article
ikoevska Feb 24, 2015
c00f54e
Reworking the overview
ikoevska Feb 24, 2015
1a5ec6b
Merge branch 'ikoevska/beta-release' of https://github.com/NativeScri…
ikoevska Feb 25, 2015
9aa659f
Reworked layouts
ikoevska Feb 25, 2015
9e21211
Setup guides
ikoevska Feb 27, 2015
bcdf80b
Tweaked the homepage to list the platforms for which you can develop.
ikoevska Feb 28, 2015
2b7eb27
Tweaked the ab setup articles
ikoevska Feb 28, 2015
f1237d7
Hello World with AppBuilder
ikoevska Feb 28, 2015
98b153c
Reworked modules
ikoevska Feb 28, 2015
cde34ef
Proofreading the UI with XML docs.
ikoevska Mar 2, 2015
3405711
Fixed navigation in the article
ikoevska Mar 2, 2015
c486b43
Hello World with the NativeScript CLI
ikoevska Mar 2, 2015
d5a589f
Regenerate the API reference
ErjanGavalji Mar 2, 2015
54b552c
Proofreading ui-views.md
ikoevska Mar 2, 2015
a5896a4
Proofreading dialogs
ikoevska Mar 2, 2015
f1c0263
Recreating Getting Started and moving the overview part to it.
ikoevska Mar 3, 2015
8c5fcae
Merge pull request #51 from NativeScript/ikoevska/beta-release
ikoevska Mar 3, 2015
8e51d8d
Fix header
ErjanGavalji Mar 3, 2015
8af7370
Fix build
ErjanGavalji Mar 3, 2015
6c29f6f
Fixing titles and a few broken links to images
ikoevska Mar 3, 2015
80c6a2f
Moving hello world and setup to top level as the nesting no longer ma…
ikoevska Mar 3, 2015
f863dc6
Reworked titling, fixed image references
ikoevska Mar 3, 2015
d54d920
Fixing titling and ordering for the rest of the docs, grouping in the…
ikoevska Mar 3, 2015
b1d09c3
Updated getting started article for the CLI
tjvantoll Mar 3, 2015
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 23 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "runtimes/android"]
path = runtimes/android
url = git@github.com:NativeScript/android-runtime-docs.git
[submodule "runtimes/ios"]
path = runtimes/ios
url = git@github.com:NativeScript/ios-runtime-docs.git
71 changes: 71 additions & 0 deletions ApiReference/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# NativeScript API Reference

### Modules
- ["application"](application/)
- ["camera"](camera/)
- ["color"](color/)
- ["console"](console/)
- ["data/observable"](data/observable/)
- ["data/observable-array"](data/observable-array/)
- ["data/virtual-array"](data/virtual-array/)
- ["file-system"](file-system/)
- ["file-system/file-system-access"](file-system/file-system-access/)
- ["fps-meter"](fps-meter/)
- ["fps-meter/fps-native"](fps-meter/fps-native/)
- ["http"](http/)
- ["image-source"](image-source/)
- ["local-settings"](local-settings/)
- ["location"](location/)
- ["platform"](platform/)
- ["text"](text/)
- ["text/formatted-string"](text/formatted-string/)
- ["text/span"](text/span/)
- ["timer"](timer/)
- ["trace"](trace/)
- ["ui/activity-indicator"](ui/activity-indicator/)
- ["ui/border"](ui/border/)
- ["ui/button"](ui/button/)
- ["ui/content-view"](ui/content-view/)
- ["ui/core/bindable"](ui/core/bindable/)
- ["ui/core/control-state-change"](ui/core/control-state-change/)
- ["ui/core/dependency-observable"](ui/core/dependency-observable/)
- ["ui/core/proxy"](ui/core/proxy/)
- ["ui/core/view"](ui/core/view/)
- ["ui/core/weak-event-listener"](ui/core/weak-event-listener/)
- ["ui/date-picker"](ui/date-picker/)
- ["ui/dialogs"](ui/dialogs/)
- ["ui/editable-text-base"](ui/editable-text-base/)
- ["ui/enums"](ui/enums/)
- ["ui/frame"](ui/frame/)
- ["ui/gestures"](ui/gestures/)
- ["ui/image"](ui/image/)
- ["ui/image-cache"](ui/image-cache/)
- ["ui/label"](ui/label/)
- ["ui/layouts/absolute-layout"](ui/layouts/absolute-layout/)
- ["ui/layouts/dock-layout"](ui/layouts/dock-layout/)
- ["ui/layouts/grid-layout"](ui/layouts/grid-layout/)
- ["ui/layouts/layout"](ui/layouts/layout/)
- ["ui/layouts/stack-layout"](ui/layouts/stack-layout/)
- ["ui/layouts/wrap-layout"](ui/layouts/wrap-layout/)
- ["ui/list-picker"](ui/list-picker/)
- ["ui/list-view"](ui/list-view/)
- ["ui/page"](ui/page/)
- ["ui/progress"](ui/progress/)
- ["ui/scroll-view"](ui/scroll-view/)
- ["ui/search-bar"](ui/search-bar/)
- ["ui/segmented-bar"](ui/segmented-bar/)
- ["ui/slider"](ui/slider/)
- ["ui/styling"](ui/styling/)
- ["ui/styling/stylers"](ui/styling/stylers/)
- ["ui/styling/visual-state-constants"](ui/styling/visual-state-constants/)
- ["ui/switch"](ui/switch/)
- ["ui/tab-view"](ui/tab-view/)
- ["ui/text-base"](ui/text-base/)
- ["ui/text-field"](ui/text-field/)
- ["ui/text-view"](ui/text-view/)
- ["ui/time-picker"](ui/time-picker/)
- ["ui/web-view"](ui/web-view/)
- ["utils/containers"](utils/containers/)
- ["utils/types"](utils/types/)
- ["utils/utils"](utils/utils/)
- ["xml"](xml/)
45 changes: 45 additions & 0 deletions ApiReference/application/AndroidApplication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
nav-title: "Object application.AndroidApplication"
title: "Object application.AndroidApplication"
description: "Object application.AndroidApplication"
---
## Object: "application".AndroidApplication
The abstraction of an Android-specific application object.

##### Properties
- **nativeApp** - _Object_.
The [android Application](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module.
- **context** - _Object_.
The application's [android Context](http://developer.android.com/reference/android/content/Context.html) object instance.
- **foregroundActivity** - _Object_.
The currently active (loaded) [android Activity](http://developer.android.com/reference/android/app/Activity.html). This property is automatically updated upon Activity events.
- **currentContext** - _Object_.
The currently active (loaded) Context. This is typically the top-level Activity that is just created.
- **startActivity** - _Object_.
The main (start) Activity for the application.
- **packageName** - _String_.
The name of the application package.
- **onActivityCreated** - _Function_(activity _Object_, bundle _Object_).
Direct handler of the [onActivityCreated method](http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html).
- **onActivityDestroyed** - _Function_(activity _Object_).
Direct handler of the [onActivityDestroyed method](http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html).
- **onActivityStarted** - _Function_(activity _Object_).
Direct handler of the [onActivityDestroyed method](http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html).
- **onActivityPaused** - _Function_(activity _Object_).
Direct handler of the [onActivityPaused method](http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html).
- **onActivityResumed** - _Function_(activity _Object_).
Direct handler of the [onActivityResumed method](http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html).
- **onActivityStopped** - _Function_(activity _Object_).
Direct handler of the [onActivityStopped method](http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html).
- **onSaveActivityState** - _Function_(activity _Object_, bundle _Object_).
Direct handler of the [onActivitySaveInstanceState method](http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html).
- **onActivityResult** - _Function_(requestCode _Number_, resultCode _Number_, data _Object_).
Direct handler of the onActivityResult method.

##### Functions
- **getActivity(** intent _Object_ **)** _Object_
This method is called by the JavaScript Bridge when navigation to a new activity is triggered.
- **intent** - _Object_
- Native (android) intent used to create the activity.
Returns com.tns.NativeScriptActivity.extend implementation.
- _**return**_ - _Object_
33 changes: 13 additions & 20 deletions application/HOW-TO.md → ApiReference/application/HOW-TO.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,40 @@
---
nav-title: "application How-To"
title: "How-To"
description: "Examples for using application"
---
# Application
The Application module provides abstraction over the platform-specific Application implementations.
It is the main BCL module and is required for other BCL modules to work properly.
The default bootstrap.js implementation for each platform loads and initializes this module.
``` JavaScript
var app = require("application");

```
The pre-required `app` module is used throughout the following code snippets.
### Initialization
``` JavaScript
// The native app instance depends on the target platform
var nativeAppInstance;
app.init(nativeAppInstance);

```
### Checking the target platform
Use the following code in case you need to check somewhere in your code the platform you are running against:
``` JavaScript
if (app.android) {
// we are running on Android device
} else if (app.ios) {
// we are running on iOS device
console.log("We are running on Android device!");
}
else if (app.ios) {
console.log("We are running on iOS device");
}

```
### Using the Android-specific implementation
Accessing the Android-specific object instance (will be undefined if running on iOS)
``` JavaScript
var androidApp = app.android;

```
Using the Android Application context
### Using the Android Application context
``` JavaScript
var context = app.android.context;

// get the Files (Documents) folder (directory)
var dir = context.getFilesDir();

```
Tracking the current Activity
### Tracking the current Activity
``` JavaScript
if (androidApp.currentActivity === androidApp.startActivity) {
// We are currently in the main (start) activity of the application
if (androidApp.foregroundActivity === androidApp.startActivity) {
console.log("We are currently in the main (start) activity of the application");
}

```
12 changes: 12 additions & 0 deletions ApiReference/application/NativeScriptError.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
nav-title: "Object application.NativeScriptError"
title: "Object application.NativeScriptError"
description: "Object application.NativeScriptError"
---
## Object: "application".NativeScriptError
_Extends:_ _Error_
An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code.

##### Properties
- **nativeError** - _Object_.
Represents the native error object.
61 changes: 61 additions & 0 deletions ApiReference/application/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
nav-title: "Module application"
title: "Module application"
description: "Module application"
---
# Module: "application"

``` JavaScript
// To import the "application" module:
var application = require("application");
```

Object | Description
------|------------
[NativeScriptError](../application/NativeScriptError.md) | An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code.
[AndroidApplication](../application/AndroidApplication.md) | The abstraction of an Android-specific application object.
[iOSApplication](../application/iOSApplication.md) | The abstraction of an iOS-specific application object.

##### Variables
- **mainModule** - _String_.
The main page path (without the file extension) for the application starting from the application root.
For example if you have page called "main.js" in a folder called "subFolder" and your root folder is "app" you can specify mainModule like this:
var application = require("application");
application.mainModule = "app/subFolder/main";
application.start();
- **cssFile** - _String_.
The application level css file name (starting from the application root). Used to set css across all pages.
Css will be applied for every page and page css will be applied after.
- **cssSelectorsCache** - _Array_ of _Object_.
Cached css selectors created from the content of the css file.
- **android** - [_AndroidApplication_](../application/AndroidApplication.md).
This is the Android-specific application object instance.
Encapsulates methods and properties specific to the Android platform.
Will be undefined when TargetOS is iOS.
- **ios** - [_iOSApplication_](../application/iOSApplication.md).
This is the iOS-specific application object instance.
Encapsulates methods and properties specific to the iOS platform.
Will be undefined when TargetOS is Android.

##### Functions
- **loadCss()**
Loads css file and parses to a css syntax tree.
- **start()**
Call this method to start the application. Important: All code after this method call will not be executed!
- **onLaunch(** context _Object_ **)**
The main entry point event. This method is expected to use the root frame to navigate to the main application page.
- **context** - _Object_
- **onUncaughtError(** error [_NativeScriptError_](../application/NativeScriptError.md) **)**
A callback to be used when an uncaught error occurs while the application is running.
The application will be shut down after this method returns.
Loading new UI at this point is erroneous and may lead to unpredictable results.
The method is intended to be used for crash reports and/or application restart.
- **error** - [_NativeScriptError_](../application/NativeScriptError.md)
- **onSuspend()**
This method will be called when the Application is suspended.
- **onResume()**
This method will be called when the Application is resumed after it has been suspended.
- **onExit()**
This method will be called when the Application is about to exit.
- **onLowMemory()**
This method will be called when there is low memory on the target device.
13 changes: 13 additions & 0 deletions ApiReference/application/iOSApplication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
nav-title: "Object application.iOSApplication"
title: "Object application.iOSApplication"
description: "Object application.iOSApplication"
---
## Object: "application".iOSApplication
The abstraction of an iOS-specific application object.

##### Properties
- **rootController** - _UIViewController_.
The root view controller for the application.
- **nativeApp** - _UIApplication_.
The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html) object instance provided to the init of the module.
16 changes: 16 additions & 0 deletions ApiReference/camera/HOW-TO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
nav-title: "camera How-To"
title: "How-To"
description: "Examples for using camera"
---
# Camera module
Using a camera requires the camera module.
``` JavaScript
var camera = require("camera");
```
### Taking a picture.
``` JavaScript
camera.takePicture().then(function (result) {
// result is ImageSource
});
```
16 changes: 16 additions & 0 deletions ApiReference/camera/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
nav-title: "Module camera"
title: "Module camera"
description: "Module camera"
---
# Module: "camera"

``` JavaScript
// To import the "camera" module:
var camera = require("camera");
```

##### Functions
- **takePicture()** _Promise_...
Take a photo using the camera.
- _**return**_ - _Promise_ of [_ImageSource_](../image-source/ImageSource.md)
43 changes: 43 additions & 0 deletions ApiReference/color/Color.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
nav-title: "Class color.Color"
title: "Class color.Color"
description: "Class color.Color"
---
## Class: "color".Color
Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range.

##### Static Functions
- **equals(** value1 [_Color_](../color/Color.md), value2 [_Color_](../color/Color.md) **)** _Boolean_
Compares two Color instances.
- **value1** - [_Color_](../color/Color.md)
A Color to compare.
- **value2** - [_Color_](../color/Color.md)
A Color to compare.
- _**return**_ - _Boolean_

##### Instance Properties
- **a** - _Number_.
Gets the Alpha component (in the [0, 255] range) of this color. This is a read-only property.
- **r** - _Number_.
Gets the Red component (in the [0, 255] range) of this color. This is a read-only property.
- **g** - _Number_.
Gets the Green component (in the [0, 255] range) of this color. This is a read-only property.
- **b** - _Number_.
Gets the Blue component (in the [0, 255] range) of this color. This is a read-only property.
- **hex** - _String_.
Gets the Hexadecimal string representation of this color. This is a read-only property.
- **argb** - _Number_.
Gets the Argb Number representation of this color where each 8 bits represent a single color component. This is a read-only property.
- **name** - _String_.
Gets the known name of this instance. Defined only if it has been constructed from a known color name - e.g. "red". This is a read-only property.
- **android** - _Number_.
Gets the android-specific integer value representation. Same as the Argb one. This is a read-only property.
- **ios** - _UIColor_.
Gets the iOS-specific UIColor value representation. This is a read-only property.

##### Instance Functions
- **equals(** value [_Color_](../color/Color.md) **)** _Boolean_
Specifies whether this Color is equal to the Color parameter.
- **value** - [_Color_](../color/Color.md)
The Color to test.
- _**return**_ - _Boolean_
Loading