1 | import { Page as PageDefinition } from '.';
|
2 | import { ContentView } from '../content-view';
|
3 | import { View, ShownModallyData } from '../core/view';
|
4 | import { Property, CssProperty } from '../core/properties';
|
5 | import { Style } from '../styling/style';
|
6 | import { Color } from '../../color';
|
7 | import { EventData } from '../../data/observable';
|
8 | import type { Frame } from '../frame';
|
9 | import { ActionBar } from '../action-bar';
|
10 | import { KeyframeAnimationInfo } from '../animation/keyframe-animation';
|
11 | interface NavigatedData extends EventData {
|
12 | context: any;
|
13 | isBackNavigation: boolean;
|
14 | }
|
15 | export declare class PageBase extends ContentView {
|
16 | static navigatingToEvent: string;
|
17 | static navigatedToEvent: string;
|
18 | static navigatingFromEvent: string;
|
19 | static navigatedFromEvent: string;
|
20 | private _navigationContext;
|
21 | private _actionBar;
|
22 | actionBarHidden: boolean;
|
23 | enableSwipeBackNavigation: boolean;
|
24 | backgroundSpanUnderStatusBar: boolean;
|
25 | hasActionBar: boolean;
|
26 | accessibilityAnnouncePageEnabled: boolean;
|
27 | get navigationContext(): any;
|
28 | get actionBar(): ActionBar;
|
29 | set actionBar(value: ActionBar);
|
30 | get statusBarStyle(): 'light' | 'dark';
|
31 | set statusBarStyle(value: 'light' | 'dark');
|
32 | get androidStatusBarBackground(): Color;
|
33 | set androidStatusBarBackground(value: Color);
|
34 | get page(): PageDefinition;
|
35 | _parentChanged(oldParent: View): void;
|
36 | _addChildFromBuilder(name: string, value: any): void;
|
37 | getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo;
|
38 | get frame(): Frame;
|
39 | private createNavigatedData;
|
40 | onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext?: any): void;
|
41 | onNavigatedTo(isBackNavigation: boolean): void;
|
42 | onNavigatingFrom(isBackNavigation: boolean): void;
|
43 | onNavigatedFrom(isBackNavigation: boolean): void;
|
44 | eachChildView(callback: (child: View) => boolean): void;
|
45 | get _childrenCount(): number;
|
46 | accessibilityScreenChanged(refocus?: boolean): void;
|
47 | }
|
48 | export interface PageBase {
|
49 | on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
|
50 | on(event: 'navigatingTo', callback: (args: NavigatedData) => void, thisArg?: any): void;
|
51 | on(event: 'navigatedTo', callback: (args: NavigatedData) => void, thisArg?: any): void;
|
52 | on(event: 'navigatingFrom', callback: (args: NavigatedData) => void, thisArg?: any): void;
|
53 | on(event: 'navigatedFrom', callback: (args: NavigatedData) => void, thisArg?: any): void;
|
54 | on(event: 'showingModally', callback: (args: ShownModallyData) => void, thisArg?: any): void;
|
55 | on(event: 'shownModally', callback: (args: ShownModallyData) => void, thisArg?: any): void;
|
56 | }
|
57 |
|
58 |
|
59 |
|
60 | export declare const actionBarHiddenProperty: Property<PageBase, boolean>;
|
61 |
|
62 |
|
63 |
|
64 | export declare const backgroundSpanUnderStatusBarProperty: Property<PageBase, boolean>;
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | export declare const enableSwipeBackNavigationProperty: Property<PageBase, boolean>;
|
70 |
|
71 |
|
72 |
|
73 | export declare const statusBarStyleProperty: CssProperty<Style, "light" | "dark">;
|
74 |
|
75 |
|
76 |
|
77 | export declare const androidStatusBarBackgroundProperty: CssProperty<Style, Color>;
|
78 | export {};
|