Bug 3163 - Animation classes should supplement SetAnimationListener() with C# events
Summary: Animation classes should supplement SetAnimationListener() with C# events
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.0
Hardware: All All
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-31 13:14 UTC by MikeFayer
Modified: 2012-04-05 22:25 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description MikeFayer 2012-01-31 13:14:41 UTC
Having code execute after an animation has completed is a very common task, and in Java its usually accomplished via Animation.SetAnimationListener(). C# doesn't have anonymous inner classes, which makes using these setListener methods rather awkward. It would be nice if the setListener method was supplemented with OnAnimEnd/OnAnimStart/OnAnimRepeat events.
Comment 1 Atsushi Eno 2012-04-04 04:07:56 UTC
This was due to our API design that only a "listener" interface that has exactly one method could be converted to an event.

In the upcoming version we will introduce new rule that covers multi-methods listener interfaces converted to events. There will be AnimationEnd, AnimationStart and AnimationRepeat events in Animation class.

Thanks for the feedback.
Comment 2 Atsushi Eno 2012-04-05 22:25:07 UTC
It seems that this change didn't go into the latest 4.1 release. It will be included in the *next* version. Sorry for possible confusion.