2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 using System.Runtime.InteropServices;
23 using Tizen.NUI.BaseComponents;
25 using System.Collections;
26 using System.Collections.Generic;
28 using System.Reflection;
30 using Tizen.NUI.Binding.Internals;
31 using Tizen.NUI.Binding;
32 using System.Globalization;
33 using Tizen.NUI.Xaml.Internals;
36 /// Animation can be used to animate the properties of any number of objects, typically view.<br />
37 /// If the "Finished" event is connected to a member function of an object, it must be disconnected before the object is destroyed.<br />
38 /// This is typically done in the object destructor, and requires either the animation handle to be stored.<br />
39 /// The overall animation time is superseded by the values given in the animation time used when calling the AnimateTo(), AnimateBy(), AnimateBetween() and AnimatePath() methods.<br />
40 /// If any of the individual calls to those functions exceeds the overall animation time (Duration), then the overall animation time is automatically extended.<br />
42 /// <since_tizen> 3 </since_tizen>
43 public class Animation : BaseHandle
45 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
47 internal Animation(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Animation_SWIGUpcast(cPtr), cMemoryOwn)
49 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
51 _animationFinishedEventCallback = OnFinished;
52 _finishedCallbackOfNative = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(_animationFinishedEventCallback);
55 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Animation obj)
57 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
61 /// To make animation instance be disposed.
63 /// <since_tizen> 3 </since_tizen>
64 protected override void Dispose(DisposeTypes type)
68 if (_animationFinishedEventCallback != null)
70 FinishedSignal().Disconnect(_finishedCallbackOfNative);
73 if (_animationProgressReachedEventCallback != null)
76 ProgressReachedSignal().Disconnect(_animationProgressReachedEventCallback);
84 if(type == DisposeTypes.Explicit)
87 //Release your own managed resources here.
88 //You should release all of your own disposable objects here.
91 else if(type == DisposeTypes.Implicit)
101 //Release your own unmanaged resources here.
102 //You should not access any managed member here except static instance.
103 //because the execution order of Finalizes is non-deterministic.
105 if (swigCPtr.Handle != global::System.IntPtr.Zero)
110 NDalicPINVOKE.delete_Animation(swigCPtr);
112 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
119 /// Creates an initialized animation.<br />
120 /// The animation will not loop.<br />
121 /// The default end action is "Cancel".<br />
122 /// The default alpha function is linear.<br />
124 /// <remarks>DurationmSeconds must be greater than zero.</remarks>
125 /// <param name="durationMilliSeconds">The duration in milliseconds.</param>
126 /// <since_tizen> 3 </since_tizen>
127 public Animation(int durationMilliSeconds) : this(NDalicPINVOKE.Animation_New((float)durationMilliSeconds / 1000.0f), true)
129 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132 private AnimationFinishedEventCallbackType _animationFinishedEventCallback;
133 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
134 private delegate void AnimationFinishedEventCallbackType(IntPtr data);
135 private event EventHandler _animationFinishedEventHandler;
137 private System.IntPtr _finishedCallbackOfNative;
140 * @brief Event for the finished signal which can be used to subscribe or unsubscribe the event handler.
141 * The finished signal is emitted when an animation's animations have finished.
143 /// <since_tizen> 3 </since_tizen>
144 public event EventHandler Finished
148 if (_animationFinishedEventHandler == null && disposed == false)
150 FinishedSignal().Connect(_finishedCallbackOfNative);
152 _animationFinishedEventHandler += value;
156 _animationFinishedEventHandler -= value;
158 if (_animationFinishedEventHandler == null && FinishedSignal().Empty() == false)
160 FinishedSignal().Disconnect(_finishedCallbackOfNative);
164 private void OnFinished(IntPtr data)
166 if (_animationFinishedEventHandler != null)
168 //here we send all data to user event handlers
169 _animationFinishedEventHandler(this, null);
173 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
174 private delegate void AnimationProgressReachedEventCallbackType(IntPtr data);
175 private AnimationProgressReachedEventCallbackType _animationProgressReachedEventCallback;
176 private event EventHandler _animationProgressReachedEventHandler;
178 * @brief Event for the ProgressReached signal, which can be used to subscribe or unsubscribe the event handler.
179 * The ProgressReached signal is emitted when the animation has reached a given progress percentage, this is set in the api SetProgressNotification.
181 /// <since_tizen> 3 </since_tizen>
182 public event EventHandler ProgressReached
186 if (_animationProgressReachedEventHandler == null)
188 _animationProgressReachedEventCallback = OnProgressReached;
189 ProgressReachedSignal().Connect(_animationProgressReachedEventCallback);
192 _animationProgressReachedEventHandler += value;
196 _animationProgressReachedEventHandler -= value;
198 if (_animationProgressReachedEventHandler == null && ProgressReachedSignal().Empty() == false)
200 ProgressReachedSignal().Disconnect(_animationProgressReachedEventCallback);
204 private void OnProgressReached(IntPtr data)
206 if (_animationProgressReachedEventHandler != null)
208 //here we send all data to user event handlers
209 _animationProgressReachedEventHandler(this, null);
213 private float MilliSecondsToSeconds(int millisec)
215 return (float)millisec / 1000.0f;
218 private int SecondsToMilliSeconds(float sec)
220 return (int)(sec * 1000);
225 /// Gets or sets the duration in milliseconds of the animation.
227 /// <since_tizen> 3 </since_tizen>
232 SetDuration(MilliSecondsToSeconds(value));
236 return SecondsToMilliSeconds(GetDuration());
241 /// Gets or sets the default alpha function for the animation.
243 /// <since_tizen> 3 </since_tizen>
244 public AlphaFunction DefaultAlphaFunction
248 SetDefaultAlphaFunction(value);
252 AlphaFunction ret = GetDefaultAlphaFunction();
258 /// Queries the state of the animation.
260 /// <since_tizen> 3 </since_tizen>
270 /// Set: Enables looping for a specified number of repeats. A zero is the same as Looping = true; i.e., repeat forever.<br />
271 /// This property resets the looping value and should not be used with the Looping property.<br />
272 /// Setting this parameter does not cause the animation to Play().<br />
273 /// Get: Gets the loop count. A zero is the same as Looping = true; i.e., repeat forever.<br />
274 /// The loop count is initially 1 for play once.<br />
276 /// <since_tizen> 3 </since_tizen>
285 int ret = GetLoopCount();
291 /// Gets or sets the status of whether the animation will loop.<br />
292 /// This property resets the loop count and should not be used with the LoopCount property.<br />
293 /// Setting this parameter does not cause the animation to Play().<br />
295 /// <since_tizen> 3 </since_tizen>
304 bool ret = IsLooping();
311 /// Gets or sets the end action of the animation.<br />
312 /// This action is performed when the animation ends or if it is stopped.<br />
313 /// The default end action is cancel.<br />
315 /// <since_tizen> 3 </since_tizen>
316 public EndActions EndAction
324 return GetEndAction();
330 /// Stops the animation.
332 /// <param name="action">The end action can be set.</param>
333 /// <since_tizen> 3 </since_tizen>
334 public void Stop(EndActions action = EndActions.Cancel)
336 SetEndAction(action);
337 NDalicPINVOKE.Animation_Stop(swigCPtr);
338 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
342 /// Gets the current loop count.<br />
343 /// A value 0 indicating the current loop count when looping.<br />
345 /// <since_tizen> 3 </since_tizen>
346 public int CurrentLoop
350 return GetCurrentLoop();
355 /// Gets or sets the disconnect action.<br />
356 /// If any of the animated property owners are disconnected from the stage while the animation is being played, then this action is performed.<br />
357 /// The default action is cancel.<br />
359 /// <since_tizen> 3 </since_tizen>
360 public EndActions DisconnectAction
364 NDalicPINVOKE.Animation_SetDisconnectAction(swigCPtr, (int)value);
365 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 Animation.EndActions ret = (Animation.EndActions)NDalicPINVOKE.Animation_GetDisconnectAction(swigCPtr);
370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377 /// Gets or sets the progress of the animation.<br />
378 /// The animation will play (or continue playing) from this point.<br />
379 /// The progress must be in the 0-1 interval or in the play range interval if defined<br />
380 /// otherwise, it will be ignored.<br />
382 /// <since_tizen> 3 </since_tizen>
383 public float CurrentProgress
387 NDalicPINVOKE.Animation_SetCurrentProgress(swigCPtr, value);
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 float ret = NDalicPINVOKE.Animation_GetCurrentProgress(swigCPtr);
393 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399 /// Gets or sets specificifications of a speed factor for the animation.<br />
400 /// The speed factor is a multiplier of the normal velocity of the animation.<br />
401 /// Values between [0, 1] will slow down the animation and values above one will speed up the animation.<br />
402 /// It is also possible to specify a negative multiplier to play the animation in reverse.<br />
404 /// <since_tizen> 3 </since_tizen>
405 public float SpeedFactor
409 NDalicPINVOKE.Animation_SetSpeedFactor(swigCPtr, value);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 float ret = NDalicPINVOKE.Animation_GetSpeedFactor(swigCPtr);
415 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 /// Gets or sets the playing range.<br />
422 /// Animation will play between the values specified. Both values (range.x and range.y ) should be between 0-1,
423 /// otherwise they will be ignored. If the range provided is not in proper order (minimum, maximum ), it will be reordered.<br />
425 /// <since_tizen> 3 </since_tizen>
426 public RelativeVector2 PlayRange
430 NDalicPINVOKE.Animation_SetPlayRange(swigCPtr, Vector2.getCPtr(value));
431 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435 Vector2 ret = new Vector2(NDalicPINVOKE.Animation_GetPlayRange(swigCPtr), true);
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
443 /// Gets or sets the progress notification marker which triggers the ProgressReachedSignal.<br />
444 /// Percentage of animation progress should be greater than 0 and less than 1, for example, 0.3 for 30% <br />
445 /// One notification can be set on each animation.
447 /// <since_tizen> 3 </since_tizen>
448 public float ProgressNotification
452 NDalicPINVOKE.Animation_SetProgressNotification(swigCPtr, value);
453 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 float ret = NDalicPINVOKE.Animation_GetProgressNotification(swigCPtr);
458 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464 /// Animates a property value by a relative amount.<br />
466 /// <param name="target">The target object to animate.</param>
467 /// <param name="property">The target property to animate.</param>
468 /// <param name="relativeValue">The property value will change by this amount.</param>
469 /// <param name="alphaFunction">The alpha function to apply.</param>
470 /// <since_tizen> 3 </since_tizen>
471 public void AnimateBy(View target, string property, object relativeValue, AlphaFunction alphaFunction = null)
473 Property _prop = PropertyHelper.GetPropertyFromString(target, property);
475 PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
476 if(propertyType.Equals(PropertyType.Float))
478 System.Type type = relativeValue.GetType();
479 if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
481 int num = (int)relativeValue;
482 relativeValue = (float)num;
486 PropertyValue val = PropertyValue.CreateFromObject(relativeValue);
488 if (alphaFunction != null)
490 AnimateBy(_prop, val, alphaFunction);
494 AnimateBy(_prop, val);
499 /// Animates a property value by a relative amount.<br />
501 /// <param name="target">The target object to animate.</param>
502 /// <param name="property">The target property to animate.</param>
503 /// <param name="relativeValue">The property value will change by this amount.</param>
504 /// <param name="startTime">The start time of the animation.</param>
505 /// <param name="endTime">The end time of the animation.</param>
506 /// <param name="alphaFunction">The alpha function to apply.</param>
507 /// <since_tizen> 3 </since_tizen>
508 public void AnimateBy(View target, string property, object relativeValue, int startTime, int endTime, AlphaFunction alphaFunction = null)
510 Property _prop = PropertyHelper.GetPropertyFromString(target, property);
512 PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
513 if(propertyType.Equals(PropertyType.Float))
515 System.Type type = relativeValue.GetType();
516 if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
518 int num = (int)relativeValue;
519 relativeValue = (float)num;
523 PropertyValue val = PropertyValue.CreateFromObject(relativeValue);
525 if (alphaFunction != null)
527 Tizen.NUI.TimePeriod time = new Tizen.NUI.TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));
528 AnimateBy(_prop, val, alphaFunction, time);
532 Tizen.NUI.TimePeriod time = new Tizen.NUI.TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));
533 AnimateBy(_prop, val, time);
538 /// Animates a property to a destination value.<br />
540 /// <param name="target">The target object to animate.</param>
541 /// <param name="property">The target property to animate.</param>
542 /// <param name="destinationValue">The destination value.</param>
543 /// <param name="alphaFunction">The alpha function to apply.</param>
544 /// <since_tizen> 3 </since_tizen>
545 public void AnimateTo(View target, string property, object destinationValue, AlphaFunction alphaFunction = null)
547 Property _prop = PropertyHelper.GetPropertyFromString(target, property);
549 PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
550 if(propertyType.Equals(PropertyType.Float))
552 System.Type type = destinationValue.GetType();
553 if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
555 int num = (int)destinationValue;
556 destinationValue = (float)num;
560 PropertyValue val = PropertyValue.CreateFromObject(destinationValue);
562 if (alphaFunction != null)
564 AnimateTo(_prop, val, alphaFunction);
568 AnimateTo(_prop, val);
571 private string[] _properties = null;
572 public string[] Properties
584 private string[] _destValue = null;
585 public string[] DestValue
597 private int[] _startTime = null;
598 public int[] StartTime
610 private int[] _endTime = null;
623 public void PlayAnimateTo(View target)
625 if (_properties.Length == _destValue.Length && _startTime.Length == _endTime.Length && _properties.Length == _startTime.Length)
627 int length = _properties.Length;
628 for (int index = 0; index < length; index++)
630 //object destinationValue = _destValue[index];
631 var elementType = target.GetType();
632 PropertyInfo propertyInfo = elementType.GetProperties().FirstOrDefault(fi => fi.Name == _properties[index]);
633 //var propertyInfo = elementType.GetRuntimeProperties().FirstOrDefault(p => p.Name == localName);
634 if (propertyInfo != null)
636 object destinationValue = ConvertTo(_destValue[index], propertyInfo.PropertyType);
638 if(destinationValue != null)
640 AnimateTo(target, _properties[index], destinationValue, _startTime[index], _endTime[index]);
648 internal object ConvertTo(object value, Type toType)
650 Func<object> getConverter = () =>
652 MemberInfo memberInfo;
654 string converterTypeName = GetTypeConverterTypeName(toType.GetTypeInfo().CustomAttributes);
655 if (converterTypeName == null)
658 Type convertertype = Type.GetType(converterTypeName);
659 return Activator.CreateInstance(convertertype);
662 return ConvertTo(value, toType, getConverter);
665 internal object ConvertTo(object value, Type toType, Func<object> getConverter)
670 var str = value as string;
673 //If there's a [TypeConverter], use it
674 object converter = getConverter?.Invoke();
675 var xfTypeConverter = converter as TypeConverter;
676 if (xfTypeConverter != null)
677 return value = xfTypeConverter.ConvertFromInvariantString(str);
678 var converterType = converter?.GetType();
679 if (converterType != null)
681 var convertFromStringInvariant = converterType.GetRuntimeMethod("ConvertFromInvariantString",
682 new[] { typeof(string) });
683 if (convertFromStringInvariant != null)
684 return value = convertFromStringInvariant.Invoke(converter, new object[] { str });
687 //If the type is nullable, as the value is not null, it's safe to assume we want the built-in conversion
688 if (toType.GetTypeInfo().IsGenericType && toType.GetGenericTypeDefinition() == typeof(Nullable<>))
689 toType = Nullable.GetUnderlyingType(toType);
691 //Obvious Built-in conversions
692 if (toType.GetTypeInfo().IsEnum)
693 return Enum.Parse(toType, str, true);
694 if (toType == typeof(SByte))
695 return SByte.Parse(str, CultureInfo.InvariantCulture);
696 if (toType == typeof(Int16))
697 return Int16.Parse(str, CultureInfo.InvariantCulture);
698 if (toType == typeof(Int32))
699 return Int32.Parse(str, CultureInfo.InvariantCulture);
700 if (toType == typeof(Int64))
701 return Int64.Parse(str, CultureInfo.InvariantCulture);
702 if (toType == typeof(Byte))
703 return Byte.Parse(str, CultureInfo.InvariantCulture);
704 if (toType == typeof(UInt16))
705 return UInt16.Parse(str, CultureInfo.InvariantCulture);
706 if (toType == typeof(UInt32))
707 return UInt32.Parse(str, CultureInfo.InvariantCulture);
708 if (toType == typeof(UInt64))
709 return UInt64.Parse(str, CultureInfo.InvariantCulture);
710 if (toType == typeof(Single))
711 return Single.Parse(str, CultureInfo.InvariantCulture);
712 if (toType == typeof(Double))
713 return Double.Parse(str, CultureInfo.InvariantCulture);
714 if (toType == typeof(Boolean))
715 return Boolean.Parse(str);
716 if (toType == typeof(TimeSpan))
717 return TimeSpan.Parse(str, CultureInfo.InvariantCulture);
718 if (toType == typeof(DateTime))
719 return DateTime.Parse(str, CultureInfo.InvariantCulture);
720 if (toType == typeof(Char))
723 Char.TryParse(str, out c);
726 if (toType == typeof(String) && str.StartsWith("{}", StringComparison.Ordinal))
727 return str.Substring(2);
728 if (toType == typeof(String))
730 if (toType == typeof(Decimal))
731 return Decimal.Parse(str, CultureInfo.InvariantCulture);
734 //if the value is not assignable and there's an implicit conversion, convert
735 if (value != null && !toType.IsAssignableFrom(value.GetType()))
737 var opImplicit = GetImplicitConversionOperator(value.GetType(), value.GetType(), toType)
738 ?? GetImplicitConversionOperator(toType, value.GetType(), toType);
739 //var opImplicit = value.GetType().GetImplicitConversionOperator(fromType: value.GetType(), toType: toType)
740 // ?? toType.GetImplicitConversionOperator(fromType: value.GetType(), toType: toType);
742 if (opImplicit != null)
744 value = opImplicit.Invoke(null, new[] { value });
749 var nativeValueConverterService = DependencyService.Get<INativeValueConverterService>();
751 object nativeValue = null;
752 if (nativeValueConverterService != null && nativeValueConverterService.ConvertTo(value, toType, out nativeValue))
758 internal string GetTypeConverterTypeName(IEnumerable<CustomAttributeData> attributes)
760 var converterAttribute =
761 attributes.FirstOrDefault(cad => TypeConverterAttribute.TypeConvertersType.Contains(cad.AttributeType.FullName));
762 if (converterAttribute == null)
764 if (converterAttribute.ConstructorArguments[0].ArgumentType == typeof(string))
765 return (string)converterAttribute.ConstructorArguments[0].Value;
766 if (converterAttribute.ConstructorArguments[0].ArgumentType == typeof(Type))
767 return ((Type)converterAttribute.ConstructorArguments[0].Value).AssemblyQualifiedName;
771 internal MethodInfo GetImplicitConversionOperator(Type onType, Type fromType, Type toType)
774 var mi = onType.GetRuntimeMethod("op_Implicit", new[] { fromType });
776 var bindingFlags = BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy;
777 var mi = onType.GetMethod("op_Implicit", bindingFlags, null, new[] { fromType }, null);
779 if (mi == null) return null;
780 if (!mi.IsSpecialName) return null;
781 if (!mi.IsPublic) return null;
782 if (!mi.IsStatic) return null;
783 if (!toType.IsAssignableFrom(mi.ReturnType)) return null;
790 /// Animates a property to a destination value.<br />
792 /// <param name="target">The target object to animate.</param>
793 /// <param name="property">The target property to animate.</param>
794 /// <param name="destinationValue">The destination value.</param>
795 /// <param name="startTime">The start time of the animation.</param>
796 /// <param name="endTime">The end time of the animation.</param>
797 /// <param name="alphaFunction">The alpha function to apply.</param>
798 /// <since_tizen> 3 </since_tizen>
799 public void AnimateTo(View target, string property, object destinationValue, int startTime, int endTime, AlphaFunction alphaFunction = null)
801 Property _prop = PropertyHelper.GetPropertyFromString(target, property);
803 PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
804 if(propertyType.Equals(PropertyType.Float))
806 System.Type type = destinationValue.GetType();
807 if (type.Equals(typeof(System.Int32)) || type.Equals(typeof(int)))
809 int num = (int)destinationValue;
810 destinationValue = (float)num;
814 PropertyValue val = PropertyValue.CreateFromObject(destinationValue);
816 if (alphaFunction != null)
818 Tizen.NUI.TimePeriod time = new Tizen.NUI.TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));
819 AnimateTo(_prop, val, alphaFunction, time);
823 Tizen.NUI.TimePeriod time = new Tizen.NUI.TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));
824 AnimateTo(_prop, val, time);
829 /// Animates a property between keyframes.
831 /// <param name="target">The target object to animate.</param>
832 /// <param name="property">The target property to animate.</param>
833 /// <param name="keyFrames">The set of time or value pairs between which to animate.</param>
834 /// <param name="interpolation">The method used to interpolate between values.</param>
835 /// <param name="alphaFunction">The alpha function to apply.</param>
836 /// <since_tizen> 3 </since_tizen>
837 public void AnimateBetween(View target, string property, KeyFrames keyFrames, Interpolation interpolation = Interpolation.Linear, AlphaFunction alphaFunction = null)
839 Property _prop = PropertyHelper.GetPropertyFromString(target, property);
841 if (_prop.propertyIndex == Property.INVALID_INDEX)
843 throw new System.ArgumentException("second argument string property is invalid parameter!");
846 if (alphaFunction != null)
848 AnimateBetween(_prop, keyFrames, alphaFunction, interpolation);
852 AnimateBetween(_prop, keyFrames, interpolation);
858 /// Animates a property between keyframes.
860 /// <param name="target">The target object to animate</param>
861 /// <param name="property">The target property to animate</param>
862 /// <param name="keyFrames">The set of time/value pairs between which to animate</param>
863 /// <param name="startTime">The start time of animation in milliseconds.</param>
864 /// <param name="endTime">The end time of animation in milliseconds.</param>
865 /// <param name="interpolation">The method used to interpolate between values.</param>
866 /// <param name="alphaFunction">The alpha function to apply.</param>
867 /// <since_tizen> 3 </since_tizen>
868 public void AnimateBetween(View target, string property, KeyFrames keyFrames, int startTime, int endTime, Interpolation interpolation = Interpolation.Linear, AlphaFunction alphaFunction = null)
870 Property _prop = PropertyHelper.GetPropertyFromString(target, property);
872 Tizen.NUI.TimePeriod time = new Tizen.NUI.TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));
873 if (alphaFunction != null)
875 AnimateBetween(_prop, keyFrames, alphaFunction, time, interpolation);
879 AnimateBetween(_prop, keyFrames, time, interpolation);
884 /// Animates the view's position and orientation through a predefined path.<br />
885 /// The view will rotate to orient the supplied forward vector with the path's tangent.<br />
886 /// If forward is the zero vector then no rotation will happen.<br />
888 /// <param name="view">The view to animate.</param>
889 /// <param name="path">It defines position and orientation.</param>
890 /// <param name="forward">The vector (in local space coordinate system) will be oriented with the path's tangent direction.</param>
891 /// <param name="alphaFunction">The alpha function to apply.</param>
892 /// <since_tizen> 3 </since_tizen>
893 public void AnimatePath(View view, Path path, Vector3 forward, AlphaFunction alphaFunction = null)
895 if (alphaFunction == null)
897 Animate(view, path, forward);
901 Animate(view, path, forward, alphaFunction);
906 /// Animates the view's position and orientation through a predefined path.<br />
907 /// The view will rotate to orient the supplied forward vector with the path's tangent.<br />
908 /// If forward is the zero vector then no rotation will happen.<br />
910 /// <param name="view">The view to animate.</param>
911 /// <param name="path">It defines position and orientation.</param>
912 /// <param name="forward">The vector (in local space coordinate system) will be oriented with the path's tangent direction.</param>
913 /// <param name="startTime">The start time of the animation.</param>
914 /// <param name="endTime">The end time of the animation.</param>
915 /// <param name="alphaFunction">The alpha function to apply.</param>
916 /// <since_tizen> 3 </since_tizen>
917 public void AnimatePath(View view, Path path, Vector3 forward, int startTime, int endTime, AlphaFunction alphaFunction = null)
919 TimePeriod time = new TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));
920 if (alphaFunction == null)
922 Animate(view, path, forward, time);
926 Animate(view, path, forward, alphaFunction, time);
931 /// Creates an initialized animation.<br />
932 /// The animation will not loop.<br />
933 /// The default end action is "Cancel".<br />
934 /// The default alpha function is linear.<br />
936 /// <since_tizen> 3 </since_tizen>
937 public Animation() : this(NDalicPINVOKE.Animation_New(0.0f), true)
939 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
942 internal Animation(float durationSeconds) : this(NDalicPINVOKE.Animation_New(durationSeconds), true)
944 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
949 /// Downcasts a handle to animation handle.<br />
950 /// If handle points to an animation object, the downcast produces a valid handle.<br />
951 /// If not, the returned handle is left uninitialized.<br />
953 /// <param name="handle">Handle to an object.</param>
954 /// <returns>Handle to an animation object or an uninitialized handle.</returns>
955 /// <since_tizen> 3 </since_tizen>
956 public static Animation DownCast(BaseHandle handle)
958 Animation ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Animation;
959 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
963 internal Animation(Animation handle) : this(NDalicPINVOKE.new_Animation__SWIG_1(Animation.getCPtr(handle)), true)
965 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
968 internal Animation Assign(Animation rhs)
970 Animation ret = new Animation(NDalicPINVOKE.Animation_Assign(swigCPtr, Animation.getCPtr(rhs)), false);
971 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
975 internal void SetDuration(float seconds)
977 NDalicPINVOKE.Animation_SetDuration(swigCPtr, seconds);
978 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
981 internal float GetDuration()
983 float ret = NDalicPINVOKE.Animation_GetDuration(swigCPtr);
984 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
988 internal void SetLooping(bool looping)
990 NDalicPINVOKE.Animation_SetLooping(swigCPtr, looping);
991 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
994 internal void SetLoopCount(int count)
996 NDalicPINVOKE.Animation_SetLoopCount(swigCPtr, count);
997 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1000 internal int GetLoopCount()
1002 int ret = NDalicPINVOKE.Animation_GetLoopCount(swigCPtr);
1003 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1007 internal int GetCurrentLoop()
1009 int ret = NDalicPINVOKE.Animation_GetCurrentLoop(swigCPtr);
1010 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1014 internal bool IsLooping()
1016 bool ret = NDalicPINVOKE.Animation_IsLooping(swigCPtr);
1017 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1021 internal void SetEndAction(Animation.EndActions action)
1023 NDalicPINVOKE.Animation_SetEndAction(swigCPtr, (int)action);
1024 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1027 internal Animation.EndActions GetEndAction()
1029 Animation.EndActions ret = (Animation.EndActions)NDalicPINVOKE.Animation_GetEndAction(swigCPtr);
1030 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1034 internal void SetDisconnectAction(Animation.EndActions disconnectAction)
1036 NDalicPINVOKE.Animation_SetDisconnectAction(swigCPtr, (int)disconnectAction);
1037 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1040 internal Animation.EndActions GetDisconnectAction()
1042 Animation.EndActions ret = (Animation.EndActions)NDalicPINVOKE.Animation_GetDisconnectAction(swigCPtr);
1043 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1047 internal void SetDefaultAlphaFunction(AlphaFunction alpha)
1049 NDalicPINVOKE.Animation_SetDefaultAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
1050 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1053 internal AlphaFunction GetDefaultAlphaFunction()
1055 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.Animation_GetDefaultAlphaFunction(swigCPtr), true);
1056 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1060 internal void SetCurrentProgress(float progress)
1062 NDalicPINVOKE.Animation_SetCurrentProgress(swigCPtr, progress);
1063 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1066 internal float GetCurrentProgress()
1068 float ret = NDalicPINVOKE.Animation_GetCurrentProgress(swigCPtr);
1069 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1073 internal void SetSpeedFactor(float factor)
1075 NDalicPINVOKE.Animation_SetSpeedFactor(swigCPtr, factor);
1076 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1079 internal float GetSpeedFactor()
1081 float ret = NDalicPINVOKE.Animation_GetSpeedFactor(swigCPtr);
1082 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1086 internal void SetPlayRange(Vector2 range)
1088 NDalicPINVOKE.Animation_SetPlayRange(swigCPtr, Vector2.getCPtr(range));
1089 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1092 internal Vector2 GetPlayRange()
1094 Vector2 ret = new Vector2(NDalicPINVOKE.Animation_GetPlayRange(swigCPtr), true);
1095 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1099 private static bool? disableAnimation = null;
1100 private bool DisableAnimation
1104 if (disableAnimation.HasValue == false)
1106 string type = Environment.GetEnvironmentVariable("PlatformSmartType");
1107 if (type == "Entry")
1108 disableAnimation = true;
1110 disableAnimation = false;
1112 return disableAnimation.Value;
1117 /// Plays the animation.
1119 /// <since_tizen> 3 </since_tizen>
1122 NDalicPINVOKE.Animation_Play(swigCPtr);
1123 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1125 if (DisableAnimation == true)
1126 Stop(EndActions.StopFinal);
1130 /// Plays the animation from a given point.<br />
1131 /// The progress must be in the 0-1 interval or in the play range interval if defined,
1132 /// otherwise, it will be ignored.<br />
1134 /// <param name="progress">A value between [0,1], or between the play range if specified, from where the animation should start playing.</param>
1135 /// <since_tizen> 3 </since_tizen>
1136 public void PlayFrom(float progress)
1138 NDalicPINVOKE.Animation_PlayFrom(swigCPtr, progress);
1139 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1143 /// Plays the animation after a given delay time.<br/>
1144 /// The delay time is not included in the looping time.<br/>
1145 /// When the delay time is a negative value, it would treat as play immediately.<br/>
1147 /// <param name="delayMilliseconds">The delay time.</param>
1148 /// <since_tizen> 4 </since_tizen>
1149 public void PlayAfter(int delayMilliseconds)
1151 NDalicPINVOKE.Animation_PlayAfter(swigCPtr, MilliSecondsToSeconds(delayMilliseconds));
1152 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1156 /// Pauses the animation.
1158 /// <since_tizen> 3 </since_tizen>
1161 NDalicPINVOKE.Animation_Pause(swigCPtr);
1162 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1165 internal Animation.States GetState()
1167 Animation.States ret = (Animation.States)NDalicPINVOKE.Animation_GetState(swigCPtr);
1168 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1173 /// Stops the animation.
1175 /// <since_tizen> 3 </since_tizen>
1178 NDalicPINVOKE.Animation_Stop(swigCPtr);
1179 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1183 /// Clears the animation.<br />
1184 /// This disconnects any objects that were being animated, effectively stopping the animation.<br />
1186 /// <since_tizen> 3 </since_tizen>
1189 NDalicPINVOKE.Animation_Clear(swigCPtr);
1190 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1193 internal AnimationSignal FinishedSignal()
1195 AnimationSignal ret = new AnimationSignal(NDalicPINVOKE.Animation_FinishedSignal(swigCPtr), false);
1196 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1200 internal AnimationSignal ProgressReachedSignal()
1202 AnimationSignal ret = new AnimationSignal(NDalicPINVOKE.Animation_ProgressReachedSignal(swigCPtr), false);
1203 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1207 internal void AnimateBy(Property target, PropertyValue relativeValue)
1209 NDalicPINVOKE.Animation_AnimateBy__SWIG_0(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(relativeValue));
1210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1213 internal void AnimateBy(Property target, PropertyValue relativeValue, AlphaFunction alpha)
1215 NDalicPINVOKE.Animation_AnimateBy__SWIG_1(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(relativeValue), AlphaFunction.getCPtr(alpha));
1216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1219 internal void AnimateBy(Property target, PropertyValue relativeValue, TimePeriod period)
1221 NDalicPINVOKE.Animation_AnimateBy__SWIG_2(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(relativeValue), TimePeriod.getCPtr(period));
1222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1225 internal void AnimateBy(Property target, PropertyValue relativeValue, AlphaFunction alpha, TimePeriod period)
1227 NDalicPINVOKE.Animation_AnimateBy__SWIG_3(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(relativeValue), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
1228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1231 internal void AnimateTo(Property target, PropertyValue destinationValue)
1233 NDalicPINVOKE.Animation_AnimateTo__SWIG_0(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(destinationValue));
1234 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1237 internal void AnimateTo(Property target, PropertyValue destinationValue, AlphaFunction alpha)
1239 NDalicPINVOKE.Animation_AnimateTo__SWIG_1(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(destinationValue), AlphaFunction.getCPtr(alpha));
1240 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1243 internal void AnimateTo(Property target, PropertyValue destinationValue, TimePeriod period)
1245 NDalicPINVOKE.Animation_AnimateTo__SWIG_2(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(destinationValue), TimePeriod.getCPtr(period));
1246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1249 internal void AnimateTo(Property target, PropertyValue destinationValue, AlphaFunction alpha, TimePeriod period)
1251 NDalicPINVOKE.Animation_AnimateTo__SWIG_3(swigCPtr, Property.getCPtr(target), PropertyValue.getCPtr(destinationValue), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
1252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1255 internal void AnimateBetween(Property target, KeyFrames keyFrames)
1257 NDalicPINVOKE.Animation_AnimateBetween__SWIG_0(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames));
1258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1261 internal void AnimateBetween(Property target, KeyFrames keyFrames, Animation.Interpolation interpolation)
1263 NDalicPINVOKE.Animation_AnimateBetween__SWIG_1(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), (int)interpolation);
1264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1267 internal void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha)
1269 NDalicPINVOKE.Animation_AnimateBetween__SWIG_2(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha));
1270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1273 internal void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha, Animation.Interpolation interpolation)
1275 NDalicPINVOKE.Animation_AnimateBetween__SWIG_3(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha), (int)interpolation);
1276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 internal void AnimateBetween(Property target, KeyFrames keyFrames, TimePeriod period)
1281 NDalicPINVOKE.Animation_AnimateBetween__SWIG_4(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), TimePeriod.getCPtr(period));
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1285 internal void AnimateBetween(Property target, KeyFrames keyFrames, TimePeriod period, Animation.Interpolation interpolation)
1287 NDalicPINVOKE.Animation_AnimateBetween__SWIG_5(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), TimePeriod.getCPtr(period), (int)interpolation);
1288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1291 internal void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha, TimePeriod period)
1293 NDalicPINVOKE.Animation_AnimateBetween__SWIG_6(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
1294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1297 internal void AnimateBetween(Property target, KeyFrames keyFrames, AlphaFunction alpha, TimePeriod period, Animation.Interpolation interpolation)
1299 NDalicPINVOKE.Animation_AnimateBetween__SWIG_7(swigCPtr, Property.getCPtr(target), KeyFrames.getCPtr(keyFrames), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period), (int)interpolation);
1300 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1303 internal void Animate(View view, Path path, Vector3 forward)
1305 NDalicPINVOKE.Animation_Animate__SWIG_0(swigCPtr, View.getCPtr(view), Path.getCPtr(path), Vector3.getCPtr(forward));
1306 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1309 internal void Animate(View view, Path path, Vector3 forward, AlphaFunction alpha)
1311 NDalicPINVOKE.Animation_Animate__SWIG_1(swigCPtr, View.getCPtr(view), Path.getCPtr(path), Vector3.getCPtr(forward), AlphaFunction.getCPtr(alpha));
1312 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1315 internal void Animate(View view, Path path, Vector3 forward, TimePeriod period)
1317 NDalicPINVOKE.Animation_Animate__SWIG_2(swigCPtr, View.getCPtr(view), Path.getCPtr(path), Vector3.getCPtr(forward), TimePeriod.getCPtr(period));
1318 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1321 internal void Animate(View view, Path path, Vector3 forward, AlphaFunction alpha, TimePeriod period)
1323 NDalicPINVOKE.Animation_Animate__SWIG_3(swigCPtr, View.getCPtr(view), Path.getCPtr(path), Vector3.getCPtr(forward), AlphaFunction.getCPtr(alpha), TimePeriod.getCPtr(period));
1324 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1327 internal void Show(View view, float delaySeconds)
1329 NDalicPINVOKE.Animation_Show(swigCPtr, View.getCPtr(view), delaySeconds);
1330 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1333 internal void Hide(View view, float delaySeconds)
1335 NDalicPINVOKE.Animation_Hide(swigCPtr, View.getCPtr(view), delaySeconds);
1336 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1340 /// Enumeration for what to do when the animation ends, stopped, or destroyed.
1342 /// <since_tizen> 3 </since_tizen>
1343 public enum EndActions
1346 /// When the animation ends, the animated property values are saved.
1350 /// When the animation ends, the animated property values are forgotten.
1354 /// If the animation is stopped, the animated property values are saved as if the animation had run to completion, otherwise behaves like cancel.
1360 /// Enumeration for what interpolation method to use on key-frame animations.
1362 /// <since_tizen> 3 </since_tizen>
1363 public enum Interpolation
1366 /// Values in between key frames are interpolated using a linear polynomial. (Default)
1370 /// Values in between key frames are interpolated using a cubic polynomial.
1376 /// Enumeration for what state the animation is in.
1378 /// <remarks>Calling Reset() on this class will not reset the animation. It will call the BaseHandle.Reset() which drops the object handle.</remarks>
1379 /// <since_tizen> 3 </since_tizen>
1383 /// The animation has stopped.
1387 /// The animation is playing.
1391 /// The animation is paused.