2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiAnimIVisualElementAnimationTickEventListener.h
20 * @brief This is the header file for the %IVisualElementAnimationTickEventListener interface.
22 * This header file contains the declarations of the %IVisualElementAnimationTickEventListener interface.
25 #ifndef _FUI_ANIM_IVISUAL_ELEMENT_ANIMATION_TICK_EVENT_LISTENER_H_
26 #define _FUI_ANIM_IVISUAL_ELEMENT_ANIMATION_TICK_EVENT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
30 #include <FUiAnimVisualElement.h>
31 #include <FUiAnimVisualElementAnimation.h>
34 namespace Tizen { namespace Ui { namespace Animations
39 * @interface IVisualElementAnimationTickEventListener
40 * @brief This interface implements the listener for the %VisualElementAnimation tick events defined in the %Tizen::Ui::Animations namespace.
44 * The %IVisualElementAnimationTickEventListener interface is the listener interface for receiving animation tick events.
45 * The class that processes an animation tick event implements this interface, and the instance created with that class is registered with an animation,
46 * using the VisualElementValueAnimation::SetVisualElementAnimationTickEventListener() method.
47 * When the animation tick event occurs, a method of that instance is invoked.
49 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/animation_event_handling.htm">Event Handling</a>.
52 class _OSP_EXPORT_ IVisualElementAnimationTickEventListener
53 : virtual public Tizen::Base::Runtime::IEventListener
58 * This is the destructor for this class.
62 virtual ~IVisualElementAnimationTickEventListener(void);
66 * Called when a tick event has occurred. @n
67 * The %OnTickOccurred() callback method will be called with every tick of the animation, using the current value by the UI framework.
71 * @param[in] animation The animation that is running
72 * @param[in] keyName The key name of the animation
73 * @param[in] target The VisualElement object to which the animation is applied
74 * @param[in] currentValue The current value
76 virtual void OnTickOccurred(const Tizen::Ui::Animations::VisualElementAnimation& animation, const Tizen::Base::String& keyName, Tizen::Ui::Animations::VisualElement& target, const Tizen::Ui::Variant& currentValue) = 0;
82 // This method is for internal use only. Using this method can cause behavioral, security-related,
83 // and consistency-related issues in the application.
86 // This method is reserved and may change its name at any time without prior notice.
90 virtual void IVisualElementAnimationTickEventListener_Reserved1(void) {}
94 // This method is for internal use only. Using this method can cause behavioral, security-related,
95 // and consistency-related issues in the application.
98 // This method is reserved and may change its name at any time without prior notice.
102 virtual void IVisualElementAnimationTickEventListener_Reserved2(void) {}
106 // This method is for internal use only. Using this method can cause behavioral, security-related,
107 // and consistency-related issues in the application.
110 // This method is reserved and may change its name at any time without prior notice.
114 virtual void IVisualElementAnimationTickEventListener_Reserved3(void) {}
115 }; // IVisualElementAnimationTickEventListener
118 }}} // Tizen::Ui::Animations
120 #endif //_FUI_ANIM_IVISUAL_ELEMENT_ANIMATION_TICK_EVENT_LISTENER_H_