22 * @module "ui/transition"
33 */ /** */
44
5- import { NavigationTransition , BackstackEntry } from "../frame" ;
6- // Types.
7- import { Transition , AndroidTransitionType } from "../transition/transition" ;
8-
9- /**
10- * @private
11- */
12-
13- export interface ExpandedTransitionListener extends androidx . transition . Transition . TransitionListener {
14- entry : ExpandedEntry ;
15- transition : androidx . transition . Transition ;
16- }
5+ import { NavigationTransition , BackstackEntry } from "../frame" ;
6+ // Types.
7+ import { Transition , AndroidTransitionType } from "../transition/transition" ;
178
18- export interface ExpandedAnimator extends android . animation . Animator {
19- entry : ExpandedEntry ;
20- transitionType ?: string ;
21- }
22-
23- export interface ExpandedEntry extends BackstackEntry {
24-
25- enterTransitionListener : ExpandedTransitionListener ;
26- exitTransitionListener : ExpandedTransitionListener ;
27- reenterTransitionListener : ExpandedTransitionListener ;
28- returnTransitionListener : ExpandedTransitionListener ;
29-
30- enterAnimator : ExpandedAnimator ;
31- exitAnimator : ExpandedAnimator ;
32- popEnterAnimator : ExpandedAnimator ;
33- popExitAnimator : ExpandedAnimator ;
9+ /**
10+ * @private
11+ */
12+ export function _setAndroidFragmentTransitions (
13+ animated : boolean ,
14+ navigationTransition : NavigationTransition ,
15+ currentEntry : BackstackEntry ,
16+ newEntry : BackstackEntry ,
17+ frameId : number ,
18+ fragmentTransaction : any ,
19+ isNestedDefaultTransition ?: boolean ) : void ;
20+ /**
21+ * @private
22+ */
23+ export function _getAnimatedEntries ( frameId : number ) : Set < BackstackEntry > ;
24+ /**
25+ * @private
26+ * Called once fragment is recreated after it was destroyed.
27+ * Reapply animations and transitions from entry to fragment if any.
28+ */
29+ export function _updateTransitions ( entry : BackstackEntry ) : void ;
30+ /**
31+ * @private
32+ * Called once fragment is going to reappear from backstack.
33+ * Reverse transitions from entry to fragment if any.
34+ */
35+ export function _reverseTransitions ( previousEntry : BackstackEntry , currentEntry : BackstackEntry ) : boolean ;
36+ /**
37+ * @private
38+ * Called when entry is removed from backstack (either back navigation or
39+ * navigate with clear history). Removes all animations and transitions from entry
40+ * and fragment and clears all listeners in order to prevent memory leaks.
41+ */
42+ export function _clearEntry ( entry : BackstackEntry ) : void ;
43+ /**
44+ * @private
45+ * Called when fragment is destroyed because activity is destroyed.
46+ * Removes all animations and transitions but keeps them on the entry
47+ * in order to reapply them when new fragment is created for the same entry.
48+ */
49+ export function _clearFragment ( entry : BackstackEntry ) : void ;
50+ /**
51+ * @private
52+ */
53+ export function _createIOSAnimatedTransitioning ( navigationTransition : NavigationTransition , nativeCurve : any , operation : number , fromVC : any , toVC : any ) : any ;
3454
35- transition : Transition ;
36- transitionName : string ;
37- frameId : number ;
38-
39- isNestedDefaultTransition : boolean
40- }
41-
42- /**
43- * @private
44- */
45- export function _setAndroidFragmentTransitions (
46- animated : boolean ,
47- navigationTransition : NavigationTransition ,
48- currentEntry : BackstackEntry ,
49- newEntry : BackstackEntry ,
50- frameId : number ,
51- fragmentTransaction : any ,
52- isNestedDefaultTransition ?: boolean ) : void ;
53- /**
54- * @private
55- */
56- export function _getAnimatedEntries ( frameId : number ) : Set < BackstackEntry > ;
57- /**
58- * @private
59- * Called once fragment is recreated after it was destroyed.
60- * Reapply animations and transitions from entry to fragment if any.
61- */
62- export function _updateTransitions ( entry : BackstackEntry ) : void ;
63- /**
64- * @private
65- * Called once fragment is going to reappear from backstack.
66- * Reverse transitions from entry to fragment if any.
67- */
68- export function _reverseTransitions ( previousEntry : BackstackEntry , currentEntry : BackstackEntry ) : boolean ;
69- /**
70- * @private
71- * Called when entry is removed from backstack (either back navigation or
72- * navigate with clear history). Removes all animations and transitions from entry
73- * and fragment and clears all listeners in order to prevent memory leaks.
74- */
75- export function _clearEntry ( entry : BackstackEntry ) : void ;
76- /**
77- * @private
78- * Called when fragment is destroyed because activity is destroyed.
79- * Removes all animations and transitions but keeps them on the entry
80- * in order to reapply them when new fragment is created for the same entry.
81- */
82- export function _clearFragment ( entry : BackstackEntry ) : void ;
83- /**
84- * @private
85- */
86- export function _createIOSAnimatedTransitioning ( navigationTransition : NavigationTransition , nativeCurve : any , operation : number , fromVC : any , toVC : any ) : any ;
87-
88- /**
89- * @private
90- */
91- export function addNativeTransitionListener ( entry : ExpandedEntry , nativeTransition : androidx . transition . Transition ) : ExpandedTransitionListener ;
55+ /**
56+ * @private
57+ * nativeTransition: androidx.transition.Transition
58+ */
59+ export function addNativeTransitionListener ( entry : any , nativeTransition : any ) : any ;
9260 //@endprivate
93-
0 commit comments