This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/native/navigator.d.ts

15 lines
637 B
TypeScript
Raw Normal View History

2020-01-03 14:44:51 +08:00
import { BridgeContext } from "../runtime/global";
2020-09-04 18:22:45 +08:00
import { ClassType } from "../pattern/mvvm";
import { Panel } from "../ui/panel";
2020-09-04 18:51:08 +08:00
export declare function internalScheme(context: BridgeContext, panelClass: ClassType<Panel>): string;
2020-01-03 14:44:51 +08:00
export declare function navigator(context: BridgeContext): {
2020-09-04 18:22:45 +08:00
push: (source: string | ClassType<Panel>, config?: {
2020-01-03 14:44:51 +08:00
alias?: string | undefined;
animated?: boolean | undefined;
extra?: object | undefined;
singlePage?: boolean | undefined;
2020-01-03 14:44:51 +08:00
} | undefined) => Promise<any>;
pop: (animated?: boolean) => Promise<any>;
2020-04-01 15:19:37 +08:00
openUrl: (url: string) => Promise<any>;
2020-01-03 14:44:51 +08:00
};