MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / constructor

Method constructor

packages/core/ui/transition/index.ios.ts:11–16  ·  view source on GitHub ↗
(duration: number = 350, nativeCurve: UIViewAnimationCurve = UIViewAnimationCurve.EaseInOut)

Source from the content-addressed store, hash-verified

9 private _curve: UIViewAnimationCurve;
10
11 constructor(duration: number = 350, nativeCurve: UIViewAnimationCurve = UIViewAnimationCurve.EaseInOut) {
12 this._duration = duration ? duration / 1000 : CORE_ANIMATION_DEFAULTS.duration;
13 this._curve = nativeCurve;
14 transitionId++;
15 this.id = transitionId;
16 }
17
18 public getDuration(): number {
19 return this._duration;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected