语言

Menu
Sites
Language
is it exist callback function of animation?

Hi! i develope tizen 2.2.1

i try the accurate moment about rotation end or start.

when i see IDE example source. many source check use Tizen::Base::Runtime:Itimerevent for check animation end moment or start moment

but OnExpiredTimer func is has some problem of my source.

i want callback fucntion of animation. 

is it exist callback fucntion of animation start moment or end moment????

Thank you!

查看选择的答案

响应

1 回复
Mark as answer
정민 성

oh.. 

I solve this problem. i didn`t see the API carefully.

clue is IcontrolAnimatorEventListener or DetailEventListener

 

Tizen::Ui::Animations::RotateAnimation r(0, 180, 0,
    		Tizen::Ui::Animations::ANIMATION_INTERPOLATOR_LINEAR);

	r.SetDuration(5000);
	r.SetAutoReverseEnabled(true);
	r.SetRepeatCount(1);

	(pButton->GetControlAnimator())->StartUserAnimation(
			Tizen::Ui::Animations::ANIMATION_TARGET_ROTATION, r);

	(pButton->GetControlAnimator())->AddControlAnimatorEventListener(*this);

if it extends IcontrolAnimatorEventListner

3pure virtual fucntion can use that was OnControlAnimationFinished OnControlAnimationStarted OnControlAnimationStopped

and it was operator pButton animation start and finished and stop 

that my answer

thank you!