UNPKG

1.26 kBTypeScriptView Raw
1import { App } from '../components/app/app';
2import { Config } from '../config/config';
3import { DeepLinker } from './deep-linker';
4import { NavOptions } from './nav-util';
5import { Overlay } from './overlay';
6export declare class OverlayProxy {
7 _app: App;
8 _component: any;
9 _config: Config;
10 _deepLinker: DeepLinker;
11 overlay: Overlay;
12 _onWillDismiss: Function;
13 _onDidDismiss: Function;
14 constructor(_app: App, _component: any, _config: Config, _deepLinker: DeepLinker);
15 getImplementation(): Overlay;
16 /**
17 * Present the modal instance.
18 *
19 * @param {NavOptions} [navOptions={}] Nav options to go with this transition.
20 * @returns {Promise} Returns a promise which is resolved when the transition has completed.
21 */
22 present(navOptions?: NavOptions): Promise<any>;
23 dismiss(data?: any, role?: string, navOptions?: NavOptions): Promise<any>;
24 /**
25 * Called when the current viewController has be successfully dismissed
26 */
27 onDidDismiss(callback: (data: any, role: string) => void): void;
28 createAndPresentOverlay(navOptions: NavOptions): Promise<any>;
29 /**
30 * Called when the current viewController will be dismissed
31 */
32 onWillDismiss(callback: Function): void;
33}