22 * Contains the application abstraction with all related methods.
33 */
44declare module "application" {
5- import { RuleSet } from "ui/styling/css-selector" ;
6- import observable = require( "data/observable" ) ;
7- import frame = require( "ui/frame" ) ;
8- import { View } from "ui/core/view" ;
5+ import { RuleSet } from "ui/styling/css-selector" ;
6+ import { NavigationEntry , View , Observable } from "ui/frame" ;
7+
98 /**
109 * An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code.
1110 */
@@ -69,7 +68,7 @@ declare module "application" {
6968 * The name of the event.
7069 */
7170 eventName : string ;
72-
71+
7372 /**
7473 * The instance that has raised the event.
7574 */
@@ -79,7 +78,7 @@ declare module "application" {
7978 /**
8079 * Event data containing information for launch event.
8180 */
82- export interface LaunchEventData extends ApplicationEventData {
81+ export interface LaunchEventData extends ApplicationEventData {
8382 /**
8483 * The root view for this Window on iOS or Activity for Android.
8584 * If not set a new Frame will be created as a root view in order to maintain backwards compatibility.
@@ -94,7 +93,7 @@ declare module "application" {
9493 /**
9594 * New orientation value.
9695 */
97- newValue : string ;
96+ newValue : "portrait" | "landscape" | "unknown" ;
9897 }
9998
10099 /**
@@ -109,7 +108,7 @@ declare module "application" {
109108 /**
110109 * The main navigation entry to be used when loading the main Page.
111110 */
112- export var mainEntry : frame . NavigationEntry ;
111+ export var mainEntry : NavigationEntry ;
113112
114113 /**
115114 * An application level static resources.
@@ -156,7 +155,7 @@ declare module "application" {
156155 /**
157156 * Call this method to start the application. Important: All code after this method call will not be executed!
158157 */
159- export function start ( entry ?: frame . NavigationEntry ) ;
158+ export function start ( entry ?: NavigationEntry ) ;
160159
161160 /**
162161 * The main entry point event. This method is expected to use the root frame to navigate to the main application page.
@@ -351,7 +350,7 @@ declare module "application" {
351350 /**
352351 * The abstraction of an Android-specific application object.
353352 */
354- export class AndroidApplication extends observable . Observable {
353+ export class AndroidApplication extends Observable {
355354 /**
356355 * The [android Application](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module.
357356 */
@@ -386,7 +385,7 @@ declare module "application" {
386385 * True if the main application activity is not running (suspended), false otherwise.
387386 */
388387 paused : boolean ;
389-
388+
390389 /**
391390 * Initialized the android-specific application object with the native android.app.Application instance.
392391 * This is useful when creating custom application types.
@@ -433,7 +432,7 @@ declare module "application" {
433432 * [Deprecated. Please use the respective event instead.] Direct handler of the onActivityResult method.
434433 */
435434 onActivityResult : ( requestCode : number , resultCode : number , data : any /* android.content.Intent */ ) => void ;
436-
435+
437436 /**
438437 * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
439438 * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
@@ -536,7 +535,7 @@ declare module "application" {
536535 * String value used when hooking to activityBackPressed event.
537536 */
538537 public static activityBackPressedEvent : string ;
539-
538+
540539 /**
541540 * String value used when hooking to requestPermissions event.
542541 */
@@ -573,7 +572,7 @@ declare module "application" {
573572 /**
574573 * The key window.
575574 */
576- window : any /* UIWindow */ ;
575+ window : any /* UIWindow */ ;
577576
578577 /**
579578 * The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html).
@@ -602,7 +601,7 @@ declare module "application" {
602601 */
603602 removeNotificationObserver ( observer : any , notificationName : string ) : void ;
604603 }
605-
604+
606605 /* tslint:disable */
607606 export interface RootViewControllerImpl {
608607
0 commit comments