UNPKG

1.73 kBTypeScriptView Raw
1import type { View } from '../core/view';
2import { SharedElementSettings, Transition } from '.';
3export declare class PageTransition extends Transition {
4 transitionController: PageTransitionController;
5 interactiveController: UIPercentDrivenInteractiveTransition;
6 presented: UIViewController;
7 presenting: UIViewController;
8 navigationController: UINavigationController;
9 operation: number;
10 sharedElements: {
11 presented?: Array<SharedElementSettings>;
12 presenting?: Array<SharedElementSettings>;
13 independent?: Array<SharedElementSettings & {
14 isPresented?: boolean;
15 }>;
16 };
17 private _interactiveStartCallback;
18 private _interactiveDismissGesture;
19 private _interactiveGestureTeardown;
20 iosNavigatedController(navigationController: UINavigationController, operation: number, fromVC: UIViewController, toVC: UIViewController): UIViewControllerAnimatedTransitioning;
21 iosInteractionDismiss(animator: UIViewControllerAnimatedTransitioning): UIViewControllerInteractiveTransitioning;
22 setupInteractiveGesture(startCallback: () => void, view: View): () => void;
23 private _interactiveDismissGestureHandler;
24 private _teardownGesture;
25}
26declare class PageTransitionController extends NSObject implements UIViewControllerAnimatedTransitioning {
27 static ObjCProtocols: {
28 prototype: UIViewControllerAnimatedTransitioning;
29 }[];
30 owner: WeakRef<PageTransition>;
31 static initWithOwner(owner: WeakRef<PageTransition>): PageTransitionController;
32 transitionDuration(transitionContext: UIViewControllerContextTransitioning): number;
33 animateTransition(transitionContext: UIViewControllerContextTransitioning): void;
34}
35export {};