UNPKG

4.5 kBTypeScriptView Raw
1import type { BackstackEntry, NavigationContext, NavigationEntry, NavigationTransition } from './frame-interfaces';
2import { NavigationType } from './frame-interfaces';
3import { Page } from '../page';
4import { View, CustomLayoutView } from '../core/view';
5import { Property } from '../core/properties';
6export { NavigationType } from './frame-interfaces';
7export type { AndroidActivityCallbacks, AndroidFragmentCallbacks, AndroidFrame, BackstackEntry, NavigationContext, NavigationEntry, NavigationTransition, TransitionState, ViewEntry, iOSFrame } from './frame-interfaces';
8export declare class FrameBase extends CustomLayoutView {
9 static androidOptionSelectedEvent: string;
10 private _animated;
11 private _transition;
12 private _backStack;
13 _navigationQueue: NavigationContext[];
14 actionBarVisibility: 'auto' | 'never' | 'always';
15 _currentEntry: BackstackEntry;
16 /**
17 * A reference of current page that is set earlier than current entry.
18 * Using this property, methods like 'eachChildView' and '_childrenCount' gain access to page view
19 * just in time for calls like '_addView' to perform view-tree iterations.
20 */
21 _resolvedPage: Page;
22 _animationInProgress: boolean;
23 _executingContext: NavigationContext;
24 _isInFrameStack: boolean;
25 static defaultAnimatedNavigation: boolean;
26 static defaultTransition: NavigationTransition;
27 static getFrameById(id: string): FrameBase;
28 static topmost(): FrameBase;
29 static goBack(): boolean;
30 /**
31 * @private
32 */
33 static reloadPage(): void;
34 /**
35 * @private
36 */
37 static _stack(): Array<FrameBase>;
38 _addChildFromBuilder(name: string, value: any): void;
39 onLoaded(): void;
40 canGoBack(): boolean;
41 /**
42 * Navigates to the previous entry (if any) in the back stack.
43 * @param to The backstack entry to navigate back to.
44 */
45 goBack(backstackEntry?: BackstackEntry): void;
46 _removeEntry(removed: BackstackEntry): void;
47 navigate(param: any): void;
48 isCurrent(entry: BackstackEntry): boolean;
49 setCurrent(entry: BackstackEntry, navigationType: NavigationType): void;
50 _updateBackstack(entry: BackstackEntry, navigationType: NavigationType): void;
51 private isNestedWithin;
52 private raiseCurrentPageNavigatedEvents;
53 _processNavigationQueue(page: Page): void;
54 _findEntryForTag(fragmentTag: string): BackstackEntry;
55 navigationQueueIsEmpty(): boolean;
56 static _isEntryBackstackVisible(entry: BackstackEntry): boolean;
57 _updateActionBar(page?: Page, disableNavBarAnimation?: boolean): void;
58 protected _processNextNavigationEntry(): void;
59 performNavigation(navigationContext: NavigationContext): void;
60 performGoBack(navigationContext: NavigationContext): void;
61 _goBackCore(backstackEntry: BackstackEntry): void;
62 _navigateCore(backstackEntry: BackstackEntry): void;
63 _onNavigatingTo(backstackEntry: BackstackEntry, isBack: boolean): void;
64 get animated(): boolean;
65 set animated(value: boolean);
66 get transition(): NavigationTransition;
67 set transition(value: NavigationTransition);
68 get backStack(): Array<BackstackEntry>;
69 get currentPage(): Page;
70 get currentEntry(): NavigationEntry;
71 _pushInFrameStackRecursive(): void;
72 _pushInFrameStack(): void;
73 _popFromFrameStack(): void;
74 _removeFromFrameStack(): void;
75 _dialogClosed(): void;
76 _onRootViewReset(): void;
77 get _childrenCount(): number;
78 eachChildView(callback: (child: View) => boolean): void;
79 _getIsAnimatedNavigation(entry: NavigationEntry): boolean;
80 _getNavigationTransition(entry: NavigationEntry): NavigationTransition;
81 get navigationBarHeight(): number;
82 _getNavBarVisible(page: Page): boolean;
83 _addViewToNativeVisualTree(child: View): boolean;
84 _removeViewFromNativeVisualTree(child: View): void;
85 _printFrameBackStack(): void;
86 _backstackEntryTrace(b: BackstackEntry): string;
87 _onLivesync(context?: ModuleContext): boolean;
88 _handleLivesync(context?: ModuleContext): boolean;
89 private _onLivesyncWithoutContext;
90 replacePage(entry: string | NavigationEntry): void;
91}
92export declare function getFrameById(id: string): FrameBase;
93export declare function topmost(): FrameBase;
94export declare function goBack(): boolean;
95export declare function _stack(): Array<FrameBase>;
96export declare const defaultPage: Property<FrameBase, string>;
97export declare const actionBarVisibilityProperty: Property<FrameBase, "auto" | "always" | "never">;