mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Descriptions fixed and navigation methods mad private
This commit is contained in:
48
ui/page/page.d.ts
vendored
48
ui/page/page.d.ts
vendored
@ -14,7 +14,7 @@ declare module "ui/page" {
|
|||||||
//@endprivate
|
//@endprivate
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the data for the page navivation events.
|
* Defines the data for the page navigation events.
|
||||||
*/
|
*/
|
||||||
export interface NavigatedData extends observable.EventData {
|
export interface NavigatedData extends observable.EventData {
|
||||||
/**
|
/**
|
||||||
@ -105,29 +105,6 @@ declare module "ui/page" {
|
|||||||
*/
|
*/
|
||||||
optionsMenu: OptionsMenu;
|
optionsMenu: OptionsMenu;
|
||||||
|
|
||||||
/**
|
|
||||||
* A method called before navigating to the page.
|
|
||||||
* @param context - The data passed to the page through the NavigationEntry.context property.
|
|
||||||
*/
|
|
||||||
onNavigatingTo(context: any): void;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A method called after navigated to the page.
|
|
||||||
* @param context - The data passed to the page through the NavigationEntry.context property.
|
|
||||||
*/
|
|
||||||
onNavigatedTo(): void;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A method called before navigating from the page.
|
|
||||||
*/
|
|
||||||
onNavigatingFrom(): void;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A method called after navigated from the page.
|
|
||||||
* @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.
|
|
||||||
*/
|
|
||||||
onNavigatedFrom(isBackNavigation: boolean): void;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
|
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
|
||||||
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
|
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
|
||||||
@ -172,6 +149,29 @@ declare module "ui/page" {
|
|||||||
_addArrayFromBuilder(name: string, value: Array<any>): void;
|
_addArrayFromBuilder(name: string, value: Array<any>): void;
|
||||||
|
|
||||||
//@private
|
//@private
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method called before navigating to the page.
|
||||||
|
* @param context - The data passed to the page through the NavigationEntry.context property.
|
||||||
|
*/
|
||||||
|
onNavigatingTo(context: any): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method called after navigated to the page.
|
||||||
|
*/
|
||||||
|
onNavigatedTo(): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method called before navigating from the page.
|
||||||
|
*/
|
||||||
|
onNavigatingFrom(): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method called after navigated from the page.
|
||||||
|
* @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.
|
||||||
|
*/
|
||||||
|
onNavigatedFrom(isBackNavigation: boolean): void;
|
||||||
|
|
||||||
_getStyleScope(): styleScope.StyleScope;
|
_getStyleScope(): styleScope.StyleScope;
|
||||||
_invalidateOptionsMenu();
|
_invalidateOptionsMenu();
|
||||||
//@endprivate
|
//@endprivate
|
||||||
|
Reference in New Issue
Block a user