See Also: Choreographer
public sealed class Choreographer : Object
Coordinates the timing of animations, input and drawing.
- To post an animation to be processed on a regular time basis synchronized with display frame rendering, use Android.Animation.ValueAnimator.start().
- To post a IRunnable to be invoked once at the beginning of the next display frame, use View.PostOnAnimation(IRunnable).
- To post a IRunnable to be invoked once at the beginning of the next display frame after a delay, use View.PostOnAnimationDelayed(IRunnable,Int64).
- To post a call to View.Invalidate to occur once at the beginning of the next display frame, use View.PostInvalidateOnAnimation or View.PostInvalidateOnAnimation(Int32,Int32,Int32,Int32).
- To ensure that the contents of a View scroll smoothly and are drawn in sync with display frame rendering, do nothing. This already happens automatically. View.OnDraw(Canvas) will be called at the appropriate time.
- If your application does its rendering in a different thread, possibly using GL, or does not use the animation framework or view hierarchy at all and you want to ensure that it is appropriately synchronized with the display, then use Choreographer.PostFrameCallback(.IFrameCallback).
- ... and that's about it.
The choreographer receives timing pulses (such as vertical synchronization) from the display subsystem then schedules work to occur as part of rendering the next display frame.
Applications typically interact with the choreographer indirectly using higher level abstractions in the animation framework or the view hierarchy. Here are some examples of things you can do using the higher-level APIs.
However, there are a few cases where you might want to use the functions of the choreographer directly in your application. Here are some examples.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16
The members of Android.Views.Choreographer are listed below.
See Also: Object
Posts a frame callback to run on the next frame.
Posts a frame callback to run on the next frame after the specified delay.
Removes a previously posted frame callback.