mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +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
|
||||
|
||||
/**
|
||||
* Defines the data for the page navivation events.
|
||||
* Defines the data for the page navigation events.
|
||||
*/
|
||||
export interface NavigatedData extends observable.EventData {
|
||||
/**
|
||||
@ -105,29 +105,6 @@ declare module "ui/page" {
|
||||
*/
|
||||
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).
|
||||
* @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;
|
||||
|
||||
//@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;
|
||||
_invalidateOptionsMenu();
|
||||
//@endprivate
|
||||
|
Reference in New Issue
Block a user