mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Expose hasLaunched() on the application, style-scope will load css-es if app hasLaunched
This commit is contained in:
10
tns-core-modules/application/application.d.ts
vendored
10
tns-core-modules/application/application.d.ts
vendored
@@ -148,6 +148,11 @@ export function on(event: "cssChanged", callback: (args: CssChangedEventData) =>
|
||||
*/
|
||||
export function on(event: "livesync", callback: (args: EventData) => void);
|
||||
|
||||
/**
|
||||
* Removes listener for the specified event name.
|
||||
*/
|
||||
export function off(eventNames: string, callback?: any, thisArg?: any);
|
||||
|
||||
/**
|
||||
* Call this method to start the application. Important: All code after this method call will not be executed!
|
||||
*/
|
||||
@@ -531,3 +536,8 @@ export interface RootViewControllerImpl {
|
||||
}
|
||||
|
||||
export function getNativeApplication(): any;
|
||||
|
||||
/**
|
||||
* Indicates if the application is allready launched. See also the `application.on("launch", handler)` event.
|
||||
*/
|
||||
export function hasLaunched(): boolean;
|
||||
Reference in New Issue
Block a user