NUIApplication.GetDefaultWindow().Add(lottie);
await Task.Delay(500);
- var min = 10;
- var max = 20;
+ var min = 5;
+ var max = 9;
lottie.SetMinMaxFrame(min, max);
- await Task.Delay(100);
+ await Task.Delay(300);
lottie.StopBehavior = LottieAnimationView.StopBehaviorType.MinimumFrame;
lottie.Play();
- await Task.Delay(100);
-
+ await Task.Delay(300);\r
+ L.Debug(tag, $"1. stop behavior ={lottie.StopBehavior} total frame={lottie.TotalFrame}");
lottie.Stop();
- await Task.Delay(100);
+ await Task.Delay(300);
- L.Debug(tag, $"2. current frame={lottie.CurrentFrame}");
+ L.Debug(tag, $"2. current frame={lottie.CurrentFrame}, min={min}, max={max}");
Assert.IsTrue(min == lottie.CurrentFrame, "should be same as previously set value");
lottie.StopBehavior = LottieAnimationView.StopBehaviorType.MaximumFrame;
lottie.Play();
- await Task.Delay(100);
-
+ await Task.Delay(300);
+ L.Debug(tag, $"2-1. stop behavior ={lottie.StopBehavior}");
lottie.Stop();
- await Task.Delay(100);
+ await Task.Delay(300);
- L.Debug(tag, $"3. current frame={lottie.CurrentFrame}");
+ L.Debug(tag, $"3. current frame={lottie.CurrentFrame}, min={min}, max={max}");
Assert.IsTrue(max == lottie.CurrentFrame, "should be same as previously set value");
L.Debug(tag, $"if some fail comes above, this will be not be shown!");